• 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
Re: NSOutlineView (bis): How does Cocoa determine a click in a cell can start a drag operation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSOutlineView (bis): How does Cocoa determine a click in a cell can start a drag operation? (From: Stéphane Sudre <email@hidden>)

  • Prev by Date: Re: CoreData fetch is way too slow
  • Next by Date: Re: Bug in CF/NSString's no-copy constructors
  • Previous by thread: NSOutlineView (bis): How does Cocoa determine a click in a cell can start a drag operation?
  • Next by thread: Event double click file saved into custom app
  • Index(es):
    • Date
    • Thread