On Thu, May 1, 2008 at 2:05 AM, Paul Bailey <[EMAIL PROTECTED]> wrote: > The class documentation for NSAutoreleasePool notes that release is a no-op > on garbage-collected environments, and one should use drain to give the > garbage collector a hint to do its job (that's my limited understanding). > It notes that drains behaves the same as release in a memory managed > environment, so it's safe to use in both circumstances.
Joar wasn't disputing the use of -drain, he was asking about the use of +new over +alloc/-init. AFAIK, there is no official documentation that recommends the former over the latter. > > Basically, if there's a chance your code might be garbage-collected, use > drain. > > As for new, not sure... > > Cheers, > > Paul > > > > On Thu, May 1, 2008 at 6:00 AM, j o a r <[EMAIL PROTECTED]> wrote: > > > > > On Apr 30, 2008, at 7:27 PM, Jens Alfke wrote: > > > > I also changed the pool calls to the current recommended names: +new and > > > -drain. > > > > > > > > > Can you point me to where the official documentation recommends the use of > > +new over +alloc-init? > > > > Thanks, > > > > j o a r > > > > > > > > _______________________________________________ > > > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > > > 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/bailey%40dreamshake.net > > > > This email sent to [EMAIL PROTECTED] > > > _______________________________________________ > > > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > 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/clarkcox3%40gmail.com > > This email sent to [EMAIL PROTECTED] > -- Clark S. Cox III [EMAIL PROTECTED] _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]