• 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: NSTableView and programmatic changing of contextual menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView and programmatic changing of contextual menu


  • Subject: Re: NSTableView and programmatic changing of contextual menu
  • From: Jason Foreman <email@hidden>
  • Date: Tue, 25 Aug 2009 10:35:07 -0500


On Aug 24, 2009, at 7:44 PM, Kyle Sluder wrote:

On Mon, Aug 24, 2009 at 5:39 PM, Jack Carbaugh<email@hidden> wrote:
My question is how do i change the contextual menu when the user right
clicks.

Override -menuForEvent:.


Another way is to implement the - tableView:willDisplayCell:forTableColumn:row: delegate method and assign the cell's menu there.



Jason



Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: NSTableView and programmatic changing of contextual menu
      • From: Kyle Sluder <email@hidden>
    • Re: NSTableView and programmatic changing of contextual menu
      • From: Corbin Dunn <email@hidden>
References: 
 >NSTableView and programmatic changing of contextual menu (From: Jack Carbaugh <email@hidden>)
 >Re: NSTableView and programmatic changing of contextual menu (From: Kyle Sluder <email@hidden>)
 >Re: NSTableView and programmatic changing of contextual menu (From: Jack Carbaugh <email@hidden>)
 >Re: NSTableView and programmatic changing of contextual menu (From: Kyle Sluder <email@hidden>)

  • Prev by Date: How is "Open Recent >" identified and populated?
  • Next by Date: Re: How is "Open Recent >" identified and populated?
  • Previous by thread: Re: NSTableView and programmatic changing of contextual menu
  • Next by thread: Re: NSTableView and programmatic changing of contextual menu
  • Index(es):
    • Date
    • Thread