Tommy Nordgren ([email protected]) on 2009-02-06 6:29 PM said:

>Do anyone know of a set container class for Cocoa objects, that use
>pointer semantics.
>
>Like this:
>       NSMutableString  * s1 = [@"Hello" mutableCopy],  * s2 = [@"Hello"
>mutableCopy];
>
>       Somesetclass *someSet = [[Somesetclass alloc]init];
>       [someSet add:s1];
>       [someSet add: s2];
>       // After these calls, someSet should contain 2 elements because s1 !=
>s2 by pointer semantics

Depending on your exact needs, maybe NSCountedSet would be useful.

Sean


_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to