Nope, I have only known cocoa for 2 months. I am a little shaky on
when to release some things. I will look into it, but I would like
to know why it is different when I put it in a for loop. Does a
timer handle this for you? I think understanding this would help me
out.
-Sam
On Jul 12, 2007, at 12:52 PM, Marc Epard wrote:
On Jul 12, 2007, at 11:22 AM, Sam McDonald wrote:
I took the code out of a timer, and instead ran through a for loop
that went through each time. This method caused my computer to
pretty much crash after 20 seconds. Can you think of any reason
why this happened. I basically took the exact stuff in the
renderTimer and took it through a for loop. To keep the project
going, I reverted back to my real-time exporting.
Did you handle pending autoreleases each time through the loop?
(I'd have to look up exactly how. Maybe make your own autorelease
pool.)