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

Re: Another autorelease question


  • Subject: Re: Another autorelease question
  • From: Finlay Dobbie <email@hidden>
  • Date: Sat, 13 Sep 2003 19:03:32 +0100

On Saturday, September 13, 2003, at 05:07 pm, Dave Riggle wrote:

_name = [[path lastPathComponent] retain];

I might have several thousand such strings retained for the duration of my application. Is the autorelease pool going to look at these objects every time through the run loop?

No, only when they are autoreleased. If you're not autoreleasing them, then that'll probably be only at creation.

-- Finlay
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Another autorelease question (From: Dave Riggle <email@hidden>)

  • Prev by Date: Re: Another autorelease question
  • Next by Date: Can you bypass a file when using initWithContentsOfFile?
  • Previous by thread: Re: Another autorelease question
  • Next by thread: Calling Cocoa APIs from a command line application
  • Index(es):
    • Date
    • Thread