• 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: Purpose of [NSAutoreleasePool drain] ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Purpose of [NSAutoreleasePool drain] ?


  • Subject: Re: Purpose of [NSAutoreleasePool drain] ?
  • From: Jim Correia <email@hidden>
  • Date: Thu, 16 Jun 2005 08:38:00 -0400

On Jun 16, 2005, at 8:18 AM, Nicko van Someren wrote:

Generally, anywhere you might have released an NSAutoreleasePool and then allocated a new one you can drain the existing one instead.

The documentation claims:

http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ ObjC_classic/Classes/NSAutoreleasePool.html#//apple_ref/doc/uid/ 20000051-BAJBDDBD

    drain
    - (void)drain

Releases objects associated with the receiver, and then deallocates the receiver.

If the docs are correct, the pool should not be reused after a drain. If they are wrong, a bug needs to be filed.

Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Purpose of [NSAutoreleasePool drain] ?
      • From: Nick Zitzmann <email@hidden>
References: 
 >Purpose of [NSAutoreleasePool drain] ? (From: Matt Gough <email@hidden>)
 >Re: Purpose of [NSAutoreleasePool drain] ? (From: Nicko van Someren <email@hidden>)

  • Prev by Date: Re: Purpose of [NSAutoreleasePool drain] ?
  • Next by Date: Re: Modal dialog alternatives?
  • Previous by thread: Re: Purpose of [NSAutoreleasePool drain] ?
  • Next by thread: Re: Purpose of [NSAutoreleasePool drain] ?
  • Index(es):
    • Date
    • Thread