• 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: Getting NSTimer to work after an NSThread completes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting NSTimer to work after an NSThread completes?


  • Subject: Re: Getting NSTimer to work after an NSThread completes?
  • From: Alex Reynolds <email@hidden>
  • Date: Tue, 7 Oct 2008 03:23:06 -0700

On Oct 7, 2008, at 1:42 AM, Jason Coco wrote:

[[NSRunLoop mainRunLoop] addTimer:myNSTimer forMode:NSDefaultRunLoopMode];

Thanks for the quick response. Unfortunately, this did not work. The 'myNSTimer' never fires.


As a workaround, I tried to update the new view with:

[NSThread detachNewThreadSelector:@selector(updateView) toTarget:self withObject:nil];

but this only works for one subview animation. After that, any subsequent detachNewThreadSelector: selector calls never happen.

-Alex
_______________________________________________

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


References: 
 >Getting NSTimer to work after an NSThread completes? (From: Alex Reynolds <email@hidden>)
 >Re: Getting NSTimer to work after an NSThread completes? (From: Jason Coco <email@hidden>)

  • Prev by Date: Re: Problems with loose ViewController coupling and KVO to-many relationships
  • Next by Date: Re: apple remote
  • Previous by thread: Re: Getting NSTimer to work after an NSThread completes?
  • Next by thread: Re: Getting NSTimer to work after an NSThread completes?
  • Index(es):
    • Date
    • Thread