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?
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
