Re: Where's the list box?
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