• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Blocks vs. life, the universe and everything
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Blocks vs. life, the universe and everything


  • Subject: Re: Blocks vs. life, the universe and everything
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Tue, 18 Oct 2011 15:42:37 +0200

Le 18 oct. 2011 à 14:00, Michael Babin a écrit :

> On Oct 17, 2011, at 2:49 PM, Greg Parker wrote:
>
>> On Oct 15, 2011, at 12:28 PM, Jean-Daniel Dupas wrote:
>>> Le 15 oct. 2011 à 21:10, Seth Willits a écrit :
>>>>
>>>> Unrelated, when did @autoreleasepool pop in? I don't remember if I knew about that or not. It's _used_ once in the Obj-C Programming Language guide, but never documented anywhere I can find.
>>>
>>> It appears with ARC.
>>>
>>> For the rational, you can read this:
>>>
>>> http://clang.llvm.org/docs/AutomaticReferenceCounting.html#autoreleasepool
>>
>> @autoreleasepool also works without ARC. It's faster than NSAutoreleasePool. Use it.
>
> What are the minimum requirements for using @autoreleasepool? The same as ARC, even when not used with ARC (Xcode 4.2 for Mac OS X v10.6 and v10.7 (64-bit applications) and for iOS 4 and iOS 5)?


I tried to compile a program using @autoreleasepool and targeting 10.5, and the compiler was smart enough to not call the new runtime functions, but instead generate old [[NSAutoreleasPool alloc] init] and [pool drain] messages.

So I guess it should works for all supported platforms.


-- Jean-Daniel




_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Blocks vs. life, the universe and everything
      • From: Greg Parker <email@hidden>
    • Re: Blocks vs. life, the universe and everything
      • From: Michael Babin <email@hidden>
References: 
 >Blocks vs. life, the universe and everything (From: Quincey Morris <email@hidden>)
 >Re: Blocks vs. life, the universe and everything (From: Greg Parker <email@hidden>)
 >Re: Blocks vs. life, the universe and everything (From: Seth Willits <email@hidden>)
 >Re: Blocks vs. life, the universe and everything (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Blocks vs. life, the universe and everything (From: Greg Parker <email@hidden>)
 >Re: Blocks vs. life, the universe and everything (From: Michael Babin <email@hidden>)

  • Prev by Date: Re: How to get from the Itunes App Store application information
  • Next by Date: Re: preventing bad memory access
  • Previous by thread: Re: Blocks vs. life, the universe and everything
  • Next by thread: Re: Blocks vs. life, the universe and everything
  • Index(es):
    • Date
    • Thread