• 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: Chris Kane <email@hidden>
  • Date: Thu, 16 Jun 2005 14:56:44 -0700

On Jun 16, 2005, at 1:59 PM, Finlay Dobbie wrote:

On 6/16/05, Chris Kane <email@hidden> wrote:

But GC isn't here yet (as of Tiger), and who knows if it will ever
happen.  We don't expect people to be using -drain today, and I would
advise against it (in case it takes on some new behaviors in the
future).


Please could you explain why this is in the public Tiger headers and documentation, if that is the case?

Same goes for CFMakeCollectable, which is in the headers but undocumented.

There's two general reasons: plans change over time, and Apple's frameworks need to use it today so experiments can continue "in the lab". It's not always practical to go back later then and move the declaration and possibly have to update many projects.


One can call it, but I wouldn't until there's a reason to. I didn't want to give the impression people should go out and change all their source code. Even under a hypothetical GC environment, thing would work fine if there was no use of -drain.


Chris Kane Cocoa Frameworks, Apple

_______________________________________________
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


References: 
 >Purpose of [NSAutoreleasePool drain] ? (From: Matt Gough <email@hidden>)
 >Re: Purpose of [NSAutoreleasePool drain] ? (From: Nicko van Someren <email@hidden>)
 >Re: Purpose of [NSAutoreleasePool drain] ? (From: Jim Correia <email@hidden>)
 >Re: Purpose of [NSAutoreleasePool drain] ? (From: Nick Zitzmann <email@hidden>)
 >Re: Purpose of [NSAutoreleasePool drain] ? (From: Chris Kane <email@hidden>)
 >Re: Purpose of [NSAutoreleasePool drain] ? (From: Finlay Dobbie <email@hidden>)

  • Prev by Date: Obfuscating .mom files
  • Next by Date: Letters cut-off in NSOutlineview?
  • Previous by thread: Re: Purpose of [NSAutoreleasePool drain] ?
  • Next by thread: Submit background task
  • Index(es):
    • Date
    • Thread