• 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: Collection classes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Collection classes


  • Subject: Re: Collection classes
  • From: Todd Blanchard <email@hidden>
  • Date: Wed, 7 Jan 2004 20:02:54 -0700

What language - Objective C?

What's not to like?

You get an ordered collection (NSArray), an associative one (NSDictionary) and an unordered set (NSSet). Its pretty pointless to use different collection classes - all of the interfaces in Cocoa expect collections to be one of those or their mutable variants. If you haul off and write one of your own or find something somewhere (unlikely to be honest - the ones that exist are adquate for most things) it will be relatively useless unless it implements enough of the protocol of the existing classes to be a convincing replacement.

Which means that you might as well add categories of methods that you do like to the existing classes so you can actually use them with other classes in Cocoa.

Incidentally - this is one of the annoyances with Java - there are too many friggin collection class interfaces and you're constantly converting types for stupid reasons. Unless you have a really compelling reason to do a custom collection, you're much better off using what's there - maybe with some nifty add on methods.

On Jan 7, 2004, at 7:32 PM, T Reaves wrote:

Are there any good collection class frameworks out there? I'm not too
happy with the default ones.

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Collection classes
      • From: Dustin Voss <email@hidden>
    • Re: Collection classes
      • From: "Timothy Reaves" <email@hidden>
    • [ANN] STL iterators/bridge to Cocoa (was: Re: Collection classes)
      • From: Allan Odgaard <email@hidden>
References: 
 >Collection classes (From: T Reaves <email@hidden>)

  • Prev by Date: Re: Message.framework bugs?
  • Next by Date: Re: class variables and class methods
  • Previous by thread: Collection classes
  • Next by thread: [ANN] STL iterators/bridge to Cocoa (was: Re: Collection classes)
  • Index(es):
    • Date
    • Thread