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 (Cocoa-dev@lists.apple.com)

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