• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: waiting for an NSThread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: waiting for an NSThread
      • From: Scott Ribe <email@hidden>
References: 
 >waiting for an NSThread (From: John Zorko <email@hidden>)

  • Prev by Date: Re: creating a printer
  • Next by Date: Handler not called on table cell edit
  • Previous by thread: Re: waiting for an NSThread
  • Next by thread: Re: waiting for an NSThread
  • Index(es):
    • Date
    • Thread