Re: NSThread does not respond the the 'exit' message
Re: NSThread does not respond the the 'exit' message
- Subject: Re: NSThread does not respond the the 'exit' message
- From: John Saccente <email@hidden>
- Date: Mon, 18 Feb 2002 18:59:34 -0600
On Monday, February 18, 2002, at 06:25 PM, Judi Smith wrote:
Hello all:
I'm really confused here. I've finally gotten my process off in its own
thread and it works great. Now I need to terminate the thread. I am
using notifications to communicate between the threads and that seems
to be working fine. However, when I attempt to return from the initial
selector, the thread doesn't terminate and further - what is really
confusing - I decided to just use
[[NSThread currentThread] exit]
and the compiler gives me the warning "NSThread does not respond to the
'exit' message." As far as I can tell for all of the docs that I have
read, exit is a valid method of NSThread.
So what am I missing?
exit is a class method, not an instance method. I'm very new to cocoa
myself, but it seems to me that calling exit is something you would do
from within the thread that you want to terminate (itself), and you'd
send the message to the class object like: [NSThread exit].
John Saccente
email@hidden
_______________________________________________
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.