• 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: [[object autorelease] release]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [[object autorelease] release]


  • Subject: Re: [[object autorelease] release]
  • From: John Hörnkvist <email@hidden>
  • Date: Tue, 2 Oct 2001 13:57:38 +0200

On Tuesday, October 2, 2001, at 01:29 PM, Markus Hitter wrote:


So, to avoid huge collections of autoreleased and no longer needed objects, it might make sense to add a "flush" method to NSAutoreleasePool which would free all objects with retain count already zero but would NOT decrement the retain count. This would avoid easily these nested pools, which appear a little ugly (at least to me).

That does not work. Once the retain count reaches zero, the object is deallocated. There will never be objects in the autorelease pool with a retain count of zero.

Regards,
John Hornkvist
--
ToastedMarshmallow, the perfect Cocoa companion
http://www.toastedmarshmallow.com


References: 
 >Re: [[object autorelease] release] (From: Markus Hitter <email@hidden>)

  • Prev by Date: Re: NSString - Initialize with number....
  • Next by Date: Re: NSString - Initialize with number....
  • Previous by thread: Re: [[object autorelease] release]
  • Next by thread: Re: [[object autorelease] release]
  • Index(es):
    • Date
    • Thread