• 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: Control-Click vs Right-Click in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Control-Click vs Right-Click in NSTableView (From: Matthew Mashyna <email@hidden>)
 >Re: Control-Click vs Right-Click in NSTableView (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: !foo vs foo == nil
  • Next by Date: Re: !foo vs foo == nil
  • Previous by thread: Re: Control-Click vs Right-Click in NSTableView
  • Next by thread: NSToolbar within view
  • Index(es):
    • Date
    • Thread