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

Control-Click vs Right-Click in NSTableView


  • Subject: Control-Click vs Right-Click in NSTableView
  • From: Matthew Mashyna <email@hidden>
  • Date: Wed, 20 Aug 2008 18:02:07 -0400

I have an NSTableView subclass whose only override method is rightMouseDown. I override it so I can have it select the table row before validating and presenting the context menu (by then passing it up to [super rightMouseDown]).

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.

For NSTableView I can catch rightMouseDown but I can't seem to catch mouseDown. When I control click a row the context men comes up over a non-selected item which, ironically enough, gives me an out-of-context menu.

How can I get control clicks on my NSTableView ?


Thanks, Matt _______________________________________________

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


  • Follow-Ups:
    • Re: Control-Click vs Right-Click in NSTableView
      • From: "Sean McBride" <email@hidden>
    • Re: Control-Click vs Right-Click in NSTableView
      • From: Jean-Daniel Dupas <email@hidden>
    • Re: Control-Click vs Right-Click in NSTableView
      • From: Randall Meadows <email@hidden>
  • Prev by Date: Re: Core Data merging
  • Next by Date: NSToolbar within view
  • Previous by thread: Re: [Q] SFPreferenceView and authorize as admin?
  • Next by thread: Re: Control-Click vs Right-Click in NSTableView
  • Index(es):
    • Date
    • Thread