Re: Control-Click vs Right-Click in NSTableView
Re: Control-Click vs Right-Click in NSTableView
- Subject: Re: Control-Click vs Right-Click in NSTableView
- From: Corbin Dunn <email@hidden>
- Date: Wed, 20 Aug 2008 17:10:35 -0700
On Aug 20, 2008, at 4:25 PM, Sean McBride wrote:
On 8/20/08 6:02 PM, Matthew Mashyna said:
This works nicely but I have found that it does not work for control
clicks. For a another view item I overrode mouseDown to check for the
control key and call [self rightMouseDown] if needed.
Have you seen:
<http://developer.apple.com/releasenotes/Cocoa/
AppKit.html#NSTableView>
"NSTableView/NSOutlineView - Contextual menu support
NSTableView and NSOutlineView now have better contextual menu
support..."
Thanks! Yes, please read that. Thanks Sean.
The "DragNDropOutlineView" demo in /Developer/Examples/AppKit shows
how to properly do it. Please do it this way on Leopard -- it will
help present a consistent UI to users. If you aren't targeting
Leopard, you should use menuForEvent: (which is what NSTableView
implemented on Leopard).
-corbin
_______________________________________________
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