• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unable to re-add tracking area after it's been removed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Quincey Morris <email@hidden>
  • Date: Sun, 17 Jul 2011 23:26:15 -0700

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 (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

  • Follow-Ups:
    • Re: Unable to re-add tracking area after it's been removed
      • From: Gabriel Roth <email@hidden>
References: 
 >Unable to re-add tracking area after it's been removed (From: Gabriel Roth <email@hidden>)

  • Prev by Date: Re: Need help debugging this
  • Next by Date: Re: Core data and disabling undo registration
  • Previous by thread: Unable to re-add tracking area after it's been removed
  • Next by thread: Re: Unable to re-add tracking area after it's been removed
  • Index(es):
    • Date
    • Thread