Re: Where's the list box?
Re: Where's the list box?
- Subject: Re: Where's the list box?
- From: daniel <email@hidden>
- Date: Fri, 11 Mar 2005 12:13:34 -0800
Yeah, that makes sense. At least it's easy enough to write a custom
reusable class that behaves as you're describing.
Keep in mind also that delegation doesn't usually mean an "extra
class." You're right that you have to add methods to some class, but
often it's the very class that is responsible for creating the "list
box."
Daniel
On Mar 11, 2005, at 11:44 AM, Robert Brown wrote:
I'm thinking more along the lines of code when I talk about overkill.
For both NSTableView and NSBrowser you have to implement a delegate
to store the data. I'm thinking of a ListBox that works much like
the combo box: you give it some items and it keeps track of them. I
agree that NSTableView and NSBrowser work fine for this, but you do
have to implement that extra class to take care of managing the data.
For the case of a simple list of strings it would be nice to have a
simple class that includes this functionality. It is definitely
handy to have the ability to use a delegate to handle your data for
more complex cases though.
_______________________________________________
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