• 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
NSTimer not firing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTimer not firing


  • Subject: NSTimer not firing
  • From: email@hidden
  • Date: Sun, 9 Aug 2009 15:56:14 +0000 (UTC)

Hi


I'm running an NSInvocationOperation in an NSOperationQueue and set up a listener for the operation's "isFinished" notification. My "observeValueForKeyPath" method is getting called when the operation finishes, but I'm finding that when I try to create a timer inside " observeValueForKeyPath," it never fires. I double checked the "seconds" input to [NSTimer scheduledTimerWithTimeInterval method and it's on;y 5 seconds so it's not like I'm inadvertently  using a really long interval. It just never fires.


When I use "sleep(seconds)" it does work, sort of, but have found that in a real environment, it often seems to crash with a bad kernel access error right at the "sleep" function. 


Anyone know why my timer might not be firing?


Thanks for any help
_______________________________________________

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: NSTimer not firing
      • From: Alastair Houghton <email@hidden>
  • Prev by Date: Re: [NSObject setValue:forUndefinedKey:] no longer requires explicit KVC notifications?
  • Next by Date: Re: NSTimer not firing
  • Previous by thread: Re: Core Data - attribute to hold an array of strings
  • Next by thread: Re: NSTimer not firing
  • Index(es):
    • Date
    • Thread