Re: Collection classes
Re: Collection classes
- Subject: Re: Collection classes
- From: "Timothy Reaves" <email@hidden>
- Date: Thu, 8 Jan 2004 12:06:46 -0500 (EST)
>
>> I need a set. A set excludes duplicates, and is not ordered. It is
>
>> not by
>
>> definition unordered, it is just that order is not imposed. That is a
>
>> fine distinction, but a distenction none-the-less. Now, for what I am
>
>> currently working on, I also need order. I can find no ordered
>
>> collection
>
>> with set symantics in the Cocoa class library.
>
>>
>
>
Euh...? What's there that you can't get from NSSet and NSMutableSet?
>
>
I sometimes also like the fine control that STL has to offer, but I
>
don't think more collection classes are needed in Foundation. Also keep
>
in mind that all those are class clusters so you might get different
>
actual classes depending on what you're doing. If you really need that
>
extra push in speed you might be able to directly use specific derived
>
classes in the various class clusters that adjust better to your needs.
>
>
Hope that helps.
>
Ideas always help. Thanks!
What is missing is that by contract you can not state that the order
of items in a set does not change. Whereas I do not necessarily care
about the ordering of items, I need the order to be static.
I have read a little about the class clusters, but am ignorant about
them. Where can I find more info as to what they are and why they
are?
_______________________________________________
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.