[Biococoa-dev] Re: BCSymbolSet
Alexander Griekspoor
mek at mekentosj.com
Sun Sep 12 16:00:52 EDT 2004
Ha Koen,
I like the idea of having such a set, especially to have the class
methods to get the predefined set. But you did save me a lot of work as
indeed I can simply make BCSymbolSet a subclass of BCMutableSet (not
NSCountedSet because you want only a single instance of a symbol in the
set at max). But most methods are there already in the BCMutableSet, so
that will be simple. I had it based on an array, but the documentation
says "use sets as an alternative to arrays when the order of elements
isn’t important and performance in testing whether an object is
contained in the set is a consideration. While arrays are ordered,
testing them for membership is slower than testing sets.", so in
general a great idea Koen!
Thanks!
Alex
Op 12-sep-04 om 21:39 heeft Koen van der Drift het volgende geschreven:
> Hoi Alex,
>
> Do we really need a BCSymbolSet? NSMutableSet already allows adding of
> objects:
>
> - (void)addObject:(id)anObject
>
>
> I use this for an NSCountedSet, and it works very well.
>
>
>
> cheers,
>
> - Koen.
>
>
>
*********************************************************
** Alexander Griekspoor **
*********************************************************
The Netherlands Cancer Institute
Department of Tumorbiology (H4)
Plesmanlaan 121, 1066 CX, Amsterdam
Tel: + 31 20 - 512 2023
Fax: + 31 20 - 512 2029
AIM: mekentosj at mac.com
E-mail: a.griekspoor at nki.nl
Web: http://www.mekentosj.com
Mac vs Windows
65 million years ago, there were more
dinosaurs than humans.
Where are the dinosaurs now?
*********************************************************
More information about the Biococoa-dev
mailing list