• 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: 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
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: Cocoa from C++ (dont want to mix it)
  • Next by Date: Re: Cocoa from C++ (dont want to mix it)
  • Previous by thread: Re: Where's the list box?
  • Next by thread: Re: Where's the list box?
  • Index(es):
    • Date
    • Thread