NSCell's mouse tracking method never called
NSCell's mouse tracking method never called
- Subject: NSCell's mouse tracking method never called
- From: Martin Cote <email@hidden>
- Date: Wed, 9 Dec 2009 23:50:49 -0500
Hello,
I'm trying to track the mouse in my custom NSCell subclass, which is
used to display the content of a NSTableView. For that matter, I
override the following method:
- (BOOL)trackMouse:(NSEvent *)theEvent inRect:(NSRect)cellFrame
ofView:(NSView *)controlView untilMouseUp:(BOOL)flag;
The problem is that this method is never called for some reason that eludes me.
Here's more details about the application:
- I use tracking rects (using NSView's
addTrackingRect:owner:userData:assumeInside: method). I'm not using
NSTrackingArea because I want this thing to work on pre-Leopard
machines.
- The mouseEntered:/mouseExited: methods are called properly for the
tracking rects.
- My NSCell's are copied for tracking (inspired by the PhotoSearch
sample project). In fact, the whole application resemble the
PhotoSearch project, the main difference being that I use tracking
rects instead of tracking areas.
I'm really perplexed by this. Any insight would be useful.
Thanks,
Martin Cote
_______________________________________________
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