• 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
NSTrackingAreas, mouse entered/exited not firing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTrackingAreas, mouse entered/exited not firing


  • Subject: NSTrackingAreas, mouse entered/exited not firing
  • From: Randall Meadows <email@hidden>
  • Date: Thu, 18 Dec 2008 17:48:15 -0700

Yet another simple operation I've apparently managed to miss something with...

I have an NSTableView subclass (actually, a subclass of BGHUDTableView), that contains a bunch of custom cells. For a couple types of those cells, I want to switch the cursor while it's in that cell. I'm following the code in the PhotoSearch sample project that's been mentioned here a couple times recently.

I've overridden -updateTrackingAreas in my table class, and I can see it adding the correct rect relative to the appropriate view, with options (NSTrackingEnabledDuringMouseDrag | NSTrackingMouseEnteredAndExited | NSTrackingActiveAlways).

I've called [[self window] setAcceptsMouseMovedEvents:YES]; from the table subclass's -awakeFromNib.

But -mouse[Entered|Exited]: is not being called when I move the mouse into those areas.

On a whim I even overrode -acceptsFirstResponder to return YES, but still no joy.

Any ideas?


Thanks. randy _______________________________________________

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


  • Prev by Date: Re: CLLocationDistance contents?
  • Next by Date: download security hanging app
  • Previous by thread: Re: CLLocationDistance contents?
  • Next by thread: download security hanging app
  • Index(es):
    • Date
    • Thread