Re: NSTableView with PopUpButtonCell column with different content per row
Re: NSTableView with PopUpButtonCell column with different content per row
- Subject: Re: NSTableView with PopUpButtonCell column with different content per row
- From: "Sean McBride" <email@hidden>
- Date: Fri, 19 Feb 2010 16:30:57 -0500
- Organization: Rogue Research Inc.
On 2/18/10 4:13 PM, Jerry Krinock said:
>Quincey's answer is excellent, and abstract. Let me give you a concrete
>example from one of my projects. Presumably your table is bound to an
>array controller whose contentSet or contentArray is bound to a
>collection of Foo objects in your data model.
>
>Table Column Bindings for "OS Version" column:
>
>Content:
> Bind to: FooArrayController
> Controller Key: arrangedObjects
> Model Key Path: osVersionChoices
>
>Content Values:
> Bind to: FooArrayController
> Controller Key: arrangedObjects
> Model Key Path: osVersionChoices.osVersionDisplayName
>
>Selected Object:
> Bind to: FooArrayController
> Controller Key: arrangedObjects
> Model Key Path: osVersion
Jerry,
Thanks for this example. I've used this technique elsewhere and like it
too, but alas as soon as you want menu separators in the popup this no
longer works. Unless you are aware of some way...
In my case currently, I need several separators and also an 'other...'
item that brings up an open panel. I'm going to investigate
menuNeedsUpdate: a bit...
Thanks all,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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