Re: When to release an NSThread instance

2009-03-06 Thread Roland King
if you don't need to reference the thread again you can just release it (and the target object used in initWithTarget:selector:object) as soon as you've called -(void)start on it. You are correct that the thread will exit when the method you are calling finishes and you don't need to call e

When to release an NSThread instance

2009-03-06 Thread Stuart Malin
I have a main thread method that allocates an NSThread object and inits with initWithTarget:selector:object. I then invoke the NSTask instance with -start. The specified selector is invoked, and there performs a background task that takes some time. When it is done, that method invokes a