RE: Memory management in a thread
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.