FROM : Keith Duncan
DATE : Thu Feb 14 22:22:20 2008
> When you aren't using GC, calling -drain on your AutoreleasePool
> object will act just like you called -release on it. As a result, in
> a loop construct like that, you'll crash if you aren't using GC.
I've filed a bug on this and would encourage everyone to do the same.
In my opinion -drain should do as the name implies; call -release on
all the objects currently autorelease'd but not release the pool itself.
Keith
DATE : Thu Feb 14 22:22:20 2008
> When you aren't using GC, calling -drain on your AutoreleasePool
> object will act just like you called -release on it. As a result, in
> a loop construct like that, you'll crash if you aren't using GC.
I've filed a bug on this and would encourage everyone to do the same.
In my opinion -drain should do as the name implies; call -release on
all the objects currently autorelease'd but not release the pool itself.
Keith






Cocoa mail archive

