On Jul 17, 2011, at 12:22, Gabriel Roth wrote: > myTrackingArea = [[NSTrackingArea alloc] > initWithRect:self.blueView.frame > options:(NSTrackingMouseEnteredAndExited | > NSTrackingActiveInActiveApp) owner:self userInfo:nil];
> [self.blueView addTrackingArea:myTrackingArea]; Well, one thing that's wrong is that the tracking area is supposed to be in the "target" view's coordinate system, that is, blueView's, but you specified it in blueView's parent view's coordinate system. IAC, if what you want is to track the mouse when it enter's blueView, then most likely the best way is to use the 'NSTrackingInVisibleRect' option instead of specifying an actual rectangle. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com