GC and CF collections
Christiaan Hofman
cmhofman at gmail.com
Sun Jul 6 13:46:17 PDT 2008
On 6 Jul 2008, at 10:35 PM, Scott Stevenson wrote:
>
> On Jul 6, 2008, at 12:33 PM, Christiaan Hofman wrote:
>
>> But that's Leopard only. What if I want to allow the same code to
>> build for Tiger as well (using different build settings)?
>
> If you need to support both Tiger and Leopard, you might as well
> avoid garbage collection entirely. Once you can move to Leopard
> exclusively, you can use NSMapTable for weak references.
>
> Just saying this because I think it simplifies things. There's
> probably not much benefit in supporting both CG and non-CG builds
> unless your project is a framework.
>
> - Scott
And that's exactly what I'm thinking of.
Christiaan
More information about the MacOSX-dev
mailing list