On Wed, Dec 9, 2009 at 11:50 PM, Martin Cote <[email protected]> wrote:
> 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.

I found what the problem was.  The hitTestForEvent:inRect:ofView:
method had to be overridden to return NSCellHitTrackableArea.

Problem solved.

Martin Cote
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to