Re: Getting the OutlineView for contextual menu?
Re: Getting the OutlineView for contextual menu?
- Subject: Re: Getting the OutlineView for contextual menu?
- From: Ken Drycksback <email@hidden>
- Date: Fri, 21 Dec 2007 14:49:11 -0800
Subclassing is the simplest route in this case I think and it works
great so I'll leave it at that. Thanks Wil for pointing me in the
right direction!
Ken
On Dec 21, 2007, at 1:56 PM, William Turner wrote:
On Dec 21, 2007, at 1:23 PM, Ken Drycksback wrote:
And I'm no Cocoa expert so maybe I'm missing something here :)
I fail to see how I can get to the outline view from the data
source.
You can always add an outlet(s) from your data source to the outline
views. If the data source for an outline is changing dynamically,
you can always update the data source outlets at the same time. It's
more bookkeeping, so it becomes a question of deciding which path
will be simplest. You may decide that subclassing is the easiest
route.
Hard to say more without a clearer idea of the end goal...
Note that the data source can be used to serve data to both outline
views, or to only one, and sometimes none at all. The data source
for an outline view can be changed at runtime.
So I see no way of getting to the outline view unless I subclass it
and then in menuNeedsUpdate I can call [ self clickedRow ] or
whatnot. I'd rather not subclass it if there's another way tho.
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