Re: Collection classes
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.