Browse Source

Behavior differences under Lion and Snow Leopard in updateTrackingAreas.

super call added.

According to documentation (NSView Class Reference -> Instance Methods -> updateTrackingAreas):
You should override this method to remove out of date tracking areas and add recomputed tracking areas; your implementation should call super.
Arturo J. Pérez 13 năm trước cách đây
mục cha
commit
287e94cd6b
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/cocoa_window.m

+ 1 - 0
src/cocoa_window.m

@@ -425,6 +425,7 @@ static int convertMacKeyCode(unsigned int macKeyCode)
                                                userInfo:nil];
 
     [self addTrackingArea:trackingArea];
+	[super updateTrackingAreas];
 }
 
 - (void)keyDown:(NSEvent *)event