• 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
Re: Help with Timer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with Timer


  • Subject: Re: Help with Timer
  • From: Chris Kane <email@hidden>
  • Date: Thu, 2 Jan 2003 11:34:41 -0800

On Wednesday, January 1, 2003, at 09:26 PM, David Rio Vierra wrote:

Before detaching your thread, store your main thread's current run loop in an instance variable. Then you can just create your timer with the +timerWith... methods instead of the +scheduledTimer... methods, and add it to that runloop yourself from your second thread.

Since NSRunLoops are not thread-safe, it is not a good idea to play with one from another thread.


Chris Kane
Cocoa Frameworks, Apple
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Help with Timer (From: David Rio Vierra <email@hidden>)

  • Prev by Date: Window Dragging in a subview...
  • Next by Date: Alpha channel with menu items
  • Previous by thread: Re: Help with Timer
  • Next by thread: Re: Equivalent to "ps aux" in Cocoa?
  • Index(es):
    • Date
    • Thread