Re: NSMapTable options
Re: NSMapTable options
- Subject: Re: NSMapTable options
- From: Ken Thomases <email@hidden>
- Date: Mon, 07 Mar 2011 14:39:04 -0600
On Mar 7, 2011, at 2:15 PM, Quincey Morris wrote:
> Could someone confirm for me that if I want a NSMapTable object with weak pointers to both keys and values, and that doesn't copy keys or values, the appropriate options are:
>
> [NSMapTable mapTableWithKeyOptions: (NSMapTableZeroingWeakMemory | NSMapTableObjectPointerPersonality) options
> valueOptions: (NSMapTableZeroingWeakMemory | NSMapTableObjectPointerPersonality)]
>
> Or is [NSMapTable mapTableWithWeakToWeakObjects] sufficient? The documentation doesn't say whether this is modeled after a dictionary (copies keys) or not.
Well, I'm not deeply familiar with this stuff, but I can't see what it would mean to have weak references to keys while also copying the keys.
Cheers,
Ken
_______________________________________________
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