Re: Help with Timer
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.