NSMapTable options
NSMapTable options
- Subject: NSMapTable options
- From: Quincey Morris <email@hidden>
- Date: Mon, 07 Mar 2011 12:15:25 -0800
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.
_______________________________________________
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