• 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: Where's the list box?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where's the list box?


  • Subject: Re: Where's the list box?
  • From: Chris Hanson <email@hidden>
  • Date: Fri, 11 Mar 2005 12:00:51 -0800

On Mar 11, 2005, at 11:44 AM, Robert Brown wrote:
I'm thinking of a ListBox that works much like the combo box: you give it some items and it keeps track of them.

Ah. That makes some sense. Generally though, the items are reflecting a collection that already exists somewhere in your application's model. If that's the case it's usually better to pull it directly from your model (say via an NSArrayController) rather than to manage a separate collection and try to keep them in sync.


For a good example of this, check out how bindings on pop-up buttons and table columns containing pop-up button cells work

  http://homepage.mac.com/mmalc/CocoaExamples/controllers.html

Particularly, see the bindings on the Priority column in MyDocument.nib in the "To Dos" example.

  -- Chris

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Where's the list box? (From: Robert Brown <email@hidden>)
 >Re: Where's the list box? (From: Daryl Thachuk <email@hidden>)
 >Re: Where's the list box? (From: Dan Saul <email@hidden>)
 >Re: Where's the list box? (From: Robert Brown <email@hidden>)
 >Re: Where's the list box? (From: daniel <email@hidden>)
 >Re: Where's the list box? (From: Robert Brown <email@hidden>)

  • Prev by Date: Re: SGSettingsDialog() in Cocoa
  • Next by Date: Re: Where's the list box?
  • Previous by thread: Re: Where's the list box?
  • Next by thread: Re: Where's the list box?
  • Index(es):
    • Date
    • Thread