• 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: "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.

References: 
 >Re: Collection classes (From: Chris Ridd <email@hidden>)
 >Re: Collection classes (From: Óscar Morales Vivó <email@hidden>)

  • Prev by Date: Re: Collection classes
  • Next by Date: NSWindow's firstResponder and a pointer to that object.
  • Previous by thread: Re: Collection classes
  • Next by thread: how to be informed that a movie is done playing?
  • Index(es):
    • Date
    • Thread