performSelectorOnMainThread with waitUntilDone:NO and withObject: an autoreleased object from the thread.
So just after the thread terminates itself with a [NSAutoreleasePool release]
What happens to my autorelease object from this thread that has been passed to the main thread ??
views:
353answers:
1
+4
A:
From the docs of performSelectorOnMainThread:withObject:waitUntilDone:
"This method retains the receiver and the arg parameter until after the selector is performed."
Somebody (the runloop?) takes care of retaining the object for you until it's not needed any more.
Nikolai Ruhe
2009-07-06 13:24:29
i should have read to the end..i only focused to the NSAutoreleasePool.
CiNN
2009-07-06 14:19:57