Re: Needed : set class for Cocoa
Re: Needed : set class for Cocoa
- Subject: Re: Needed : set class for Cocoa
- From: "Adam R. Maxwell" <email@hidden>
- Date: Fri, 06 Feb 2009 09:05:16 -0800
On Feb 6, 2009, at 8:47 AM, Sean McBride wrote:
On 2/5/09 7:57 PM, Adam R. Maxwell said:
The nice part is that it
can then be cast to an NSMutableSet.
Are you sure? I thought toll-free bridging only worked if you don't
use
custom CF callbacks. IAC, I don't think the OP said he needed toll-
free
bridging.
In the case of -[NSDictionary setObject:forKey:] it will first send
copyWithZone: to a key, then invoke your callback. Based on previous
discussion of that bug (which Apple says is not a bug), IIRC being
told that the custom callbacks are always called, so for NSArray/NSSet
it should just work.
--
Adam
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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