• 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
Timer and RunLoop question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Timer and RunLoop question
      • From: Wim Lewis <email@hidden>
  • Prev by Date: System Configuration framework question re airport
  • Next by Date: NSTableColumn value binding + keypath over a relationship
  • Previous by thread: System Configuration framework question re airport
  • Next by thread: Re: Timer and RunLoop question
  • Index(es):
    • Date
    • Thread