Re: NSMapTable with weak refs on 10.7

2014-01-10 Thread Quincey Morris
On Jan 10, 2014, at 08:38 , Jens Alfke wrote: > Is there a way to make this work, or does NSMapTable just not support > ARC-based weak references in 10.7? IIRC, NSMapTable was simply unsafe to use with ARC until the introduction of ‘NSMapTableWeakMemory’ in 10.8, and I had to write my own map

NSMapTable with weak refs on 10.7

2014-01-10 Thread Jens Alfke
I’m using an NSMapTable object with weak value references, in an ARC-based target. Unfortunately I’ve been told that this code crashes on OS X 10.7 — initializing the table raises an exception "Requested configuration not supported.” I’ve tried adjusting the option flags but without success. Is