Re: Safely terminating a thread, or the dealloc that doesn't dealloc?
Re: Safely terminating a thread, or the dealloc that doesn't dealloc?
- Subject: Re: Safely terminating a thread, or the dealloc that doesn't dealloc?
- From: Charles Srstka <email@hidden>
- Date: Mon, 15 Mar 2004 12:03:28 -0600
On Mar 15, 2004, at 9:19 AM, Glen Low wrote:
On 15/03/2004, at 9:27 PM, j o a r wrote:
Maybe I'm being too paranoid. The doco says the receiver for
performSelectorOnMainThread is retained until the perform is complete,
so that should mean the object will still be around until after
perfomSelectorOnMainThread does it job. Still doesn't deal with the
case when the object is dealloc'ed before perform is called...
What makes you suspect that perfomSelectorOnMainThread won't retain the
object until the perform is called? I don't see anything to that end in
the documentation - it just says that the object is retained until the
perform is finished. I read that to mean that it is retained when you
call the method. Wouldn't that make the most sense?
Have you actually encountered a problem with the app crashing, or is
this all just hypothetical?
Charles
_______________________________________________
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.