Re: waiting for an NSThread
Re: waiting for an NSThread
- Subject: Re: waiting for an NSThread
- From: Omar Qazi <email@hidden>
- Date: Sun, 12 Oct 2008 22:26:41 -0700
Yes.
NSThread *newThread = [self startTheThread];
[[NSNotificationCenter defaultCenter]addObserver:self
selector:@selector(threadExited:) name:NSThreadWillExitNotification
object:newThread];
- (void)threadExited:(NSNotification *)noti {
NSLog(@"Thread exited");
}
On Oct 12, 2008, at 8:42 PM, John Zorko wrote:
Can I have Cocoa notify me when a thread ends, like it notifies me
when an observed property changes?
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden