• 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 with PopUpButtonCell column with different content per row
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSTableView with PopUpButtonCell column with different content per row
      • From: Jerry Krinock <email@hidden>
References: 
 >NSTableView with PopUpButtonCell column with different content per row (From: "Sean McBride" <email@hidden>)
 >Re: NSTableView with PopUpButtonCell column with different content per row (From: Quincey Morris <email@hidden>)
 >Re: NSTableView with PopUpButtonCell column with different content per row (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: selectItemWithObjectValue
  • Next by Date: Overriding NSPopUpButton
  • Previous by thread: Re: NSTableView with PopUpButtonCell column with different content per row
  • Next by thread: Re: NSTableView with PopUpButtonCell column with different content per row
  • Index(es):
    • Date
    • Thread