Re: Needed : set class for Cocoa
Re: Needed : set class for Cocoa
- Subject: Re: Needed : set class for Cocoa
- From: Quincey Morris <email@hidden>
- Date: Thu, 5 Feb 2009 16:07:37 -0800
On Feb 5, 2009, at 15:59, Quincey Morris wrote:
Alternatively, you can use NSSet with values "encoded" by [NSValue
valueWithPointer: someObject], and "decoded" by [someValueObject
pointerValue].
Er, sorry, if you're going that route, it would be slightly more
correct to use [NSValue valueWithNonretainedObject: someObject] and
[someValueObject nonretainedObjectValue], so that you get the maximum
compile-time type checking and self-documentation. But it's
practically the same thing.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden