Re: Getting the OutlineView for contextual menu?
Re: Getting the OutlineView for contextual menu?
- Subject: Re: Getting the OutlineView for contextual menu?
- From: William Turner <email@hidden>
- Date: Fri, 21 Dec 2007 12:04:55 -0800
I might be misunderstanding what you're trying to do, but have you
considering creating the menus in IB and setting the outline views'
menu outlet to the appropriate menus? Then, the right menu will show
for each outline without any code on your part. If you need to modify
either of the menus before they display, you can implement the NSMenu
delegate method - (void)menuNeedsUpdate:(NSMenu *)menu.
Wil
On Dec 21, 2007, at 11:50 AM, Ken Drycksback wrote:
I have a number of outline views and want to add contextual menu
support to them. The data sources are set as delegates for the
outline views and two outline views could use the same data source.
The problem is I can't find a way to get the outline view I right-
clicked in when in - (void) menuNeedsUpdate: (NSMenu*) menu
The menu update method is in the data source.
Any ideas on how to know which one of the outline views I'm about to
display the menu for?
Ken
_______________________________________________
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
_______________________________________________
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