FROM : John Stiles
DATE : Thu Feb 14 22:39:30 2008
Isn't it too late, though? If even one shipped program relies on the old
behavior, it's carved in stone.
Keith Duncan wrote:
>> 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-dev mailing list (<email_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
DATE : Thu Feb 14 22:39:30 2008
Isn't it too late, though? If even one shipped program relies on the old
behavior, it's carved in stone.
Keith Duncan wrote:
>> 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-dev mailing list (<email_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>






Cocoa mail archive

