• 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
[solved]: NSTimer won't fire.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[solved]: NSTimer won't fire.


  • Subject: [solved]: NSTimer won't fire.
  • From: zeichensprecher <email@hidden>
  • Date: Thu, 2 Dec 2004 16:46:56 +0100

Moreover: the timer gets fired, when I explicitly call [timer fire].
But it does never fire by itself ???

Is the NSRunLoop running? ;)

damn, no! It was not running.

I now added [[NSRunLoop defaultRunLoop] run] and the timer is firing!



But how is that possible?
I am inside an event that receives an incoming MIDI-note and processes this.
The Timer is there to produce a NOTE_OFF-Event after some time a NOTE_ON-Event occured.



From the manual:
"In general, your application does not need to either create or explicitly manage NSRunLoop objects. Each NSThread, including the application’s main thread, has an NSRunLoop object automatically created for it."


So I assume, that MIDI-Events occur in another thread than my application?!
I wasn't aware of that...



Nevertheless,
thank you very much for your answers, you pointed me to the right direction!



Best regards, Michael _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >NSTimer won't fire. (From: zeichensprecher <email@hidden>)
 >Re: NSTimer won't fire. (From: j o a r <email@hidden>)
 >Re: NSTimer won't fire. (From: zeichensprecher <email@hidden>)
 >Re: NSTimer won't fire. (From: Shaun Wexler <email@hidden>)

  • Prev by Date: Re: Swapping isa's (was Re: Hex Edit controls (resknife))
  • Next by Date: textShouldNotEvenThinkAboutEndEditingIfItKnowsWhatIsGoodForIt
  • Previous by thread: Re: NSTimer won't fire.
  • Next by thread: Re: NSTimer won't fire.
  • Index(es):
    • Date
    • Thread