Re: NSTableView and programmatic changing of contextual menu
Re: NSTableView and programmatic changing of contextual menu
- Subject: Re: NSTableView and programmatic changing of contextual menu
- From: Corbin Dunn <email@hidden>
- Date: Tue, 25 Aug 2009 08:41:51 -0700
On Aug 25, 2009, at 8:35 AM, Jason Foreman wrote:
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.
Or, populate the menu dynamically.
The DragNDropOutlineView demo app (on your system) and the 10.5 AppKit
release notes cover this.
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