Timer and RunLoop question
Timer and RunLoop question
- Subject: Timer and RunLoop question
- From: Gabriel Zachmann <email@hidden>
- Date: Tue, 29 Sep 2009 23:09:41 +0200
I've got an app that handles keyboard input (-keyDown:) and has a
repeating timer that causes the runloop to call repeatedly a method in
my app (called timerFireMethod:).
Could it happen that keyDown: and timerFireMethod: are running at the
same time?
In other words: does the runloop execute the two methods of my app in
different threads?
Or is there an easy way to find out?
And what about two timers, i.e., what happens, if one of them fires
while the method associated with the other one is till executing?
Best regards,
Gabriel.
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