Re: NSTimer in a secondary thread?
Re: NSTimer in a secondary thread?
- Subject: Re: NSTimer in a secondary thread?
- From: Finlay Dobbie <email@hidden>
- Date: Wed, 21 Aug 2002 23:15:13 +0100
On Wednesday, August 21, 2002, at 10:53 PM, Pierre-Olivier Latour wrote:
On Wednesday, August 21, 2002, at 09:33 PM, Pierre-Olivier Latour
wrote:
I'm encapsulating my 3D engine inside a Cocoa interface. I'd like to
do
rendering in a separate thread. However, I don't find the
documentation
very
clear on how to run an NSTimer inside another thread.
NSTimers rely on there being a runloop running, AFAIK. See NSRunLoop.
Sure, that's why I call:
runLoop = [NSRunLoop currentRunLoop];
According to the doc, [NSRunLoop currentRunLoop] will create a run loop
if
there's none in the thread.
I'm being really dozy today.
Anyway, yes, it will create one, but as Aram noted you're not telling it
to actually *run*. :-)
-- Finlay
_______________________________________________
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.