NSTrackingAreas, mouse entered/exited not firing
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