Re: Unable to re-add tracking area after it's been removed
Re: Unable to re-add tracking area after it's been removed
- Subject: Re: Unable to re-add tracking area after it's been removed
- From: Gabriel Roth <email@hidden>
- Date: Mon, 18 Jul 2011 07:59:09 -0400
> 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.
Thanks for the corrections. But changing the line in question to
myTrackingArea = [[NSTrackingArea alloc]
initWithRect:self.blueView.bounds
options:(NSTrackingMouseEnteredAndExited |
NSTrackingActiveInActiveApp | NSTrackingInVisibleRect ) owner:self
userInfo:nil];
doesn't change the puzzling behavior when attempting to re-add the
tracking area.
gr.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden