Преглед на файлове

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 години
родител
ревизия
287e94cd6b
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  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