[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: @autoreleasepool
From: |
Thomas Davie |
Subject: |
Re: @autoreleasepool |
Date: |
Thu, 28 Jul 2011 10:17:10 +0100 |
On 28 Jul 2011, at 10:11, Fred Kiefer wrote:
> With Apple introducing @autoreleasepool I think that we need to adjust our
> macros in GNUstep.h. Currently the CREATE_AUTORELEASE_POOL macro is
> deprecated, I think this should be un-deprecated and for ARC we should use
> @autoreleasepool { here.
>
> We also need to introduce a corresponding DESTROY_AUTORELASE_POOL(X) macro
> that for ARC would just be }, and in the other cases either [X drain] or [X
> release].
I may be wrong, but my interpretation of the apple videos was that if you used
@autoreleasepool with ARC off, clang would insert an NSAutoreleasePool object
alloc/init and drain for you.
Bob