[solved]: NSTimer won't fire.
[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