• 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: Memory management in a thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Memory management in a thread


  • Subject: RE: Memory management in a thread
  • From: Mel Walker <email@hidden>
  • Date: Fri, 12 Mar 2004 14:17:00 -0700

On Mar 12, 2004, at 2:03 PM, "Jonathan E. Jackel" wrote:

Second, there's no rule that says you can only use one autorelease pool.
You can create additional pools inside the loops and release them at the end
of the loops.

Isn't this the way the NSApplication event loop works? i.e. it creates a pool, runs the next event, and releases the pool, then repeats?

I have a loop in an app I wrote that does a lot of processing, so I instead of tracking every object, I used autoreleased objects and created a new pool every time through the loop.

--
Mel Walker <email@hidden>
"Now we play 'the waiting game'....Awww, the waiting game sucks. Lets play Hungry, Hungry Hippos."  Homer Simpson
_______________________________________________
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.


  • Prev by Date: Re: Memory management in a thread
  • Next by Date: Re: newbie question: two windows
  • Previous by thread: Re: Memory management in a thread
  • Next by thread: Re: Writing an image from a text view to file [SOLVED]
  • Index(es):
    • Date
    • Thread