Re: NSOutlineView (bis): How does Cocoa determine a click in a cell can start a drag operation?
Re: NSOutlineView (bis): How does Cocoa determine a click in a cell can start a drag operation?
- Subject: Re: NSOutlineView (bis): How does Cocoa determine a click in a cell can start a drag operation?
- From: Benjamin Stiglitz <email@hidden>
- Date: Wed, 6 Feb 2008 10:26:21 -0800
The subclass of NSButtonCell overloads - (BOOL)
trackMouse:inRect:ofView:untilMouseUp: so that the cell does not
respond to clicks.
Now this doesn't seem to be enough as a click on a cell of the first
column can not start a drag operation.
Take a look at - (NSUInteger)hitTestForEvent:(NSEvent *)event inRect:
(NSRect)cellFrame ofView:(NSView *)controlView:
http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSCell_Class/Reference/NSCell.html#/
/apple_ref/occ/instm/NSCell/hitTestForEvent:inRect:ofView:
-Ben
_______________________________________________
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