Re: NSMapTable options

2011-03-07 Thread Quincey Morris
On Mar 7, 2011, at 12:39, Ken Thomases wrote: > 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. OK, I admit I did sit for 5 minutes after reading this trying to think of a use for weak references to

Re: NSMapTable options

2011-03-07 Thread Ken Thomases
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: (NSMapTableZeroing

NSMapTable options

2011-03-07 Thread Quincey Morris
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