Re: NSTimer in a secondary thread?
Re: NSTimer in a secondary thread?
- Subject: Re: NSTimer in a secondary thread?
- From: Pierre-Olivier Latour <email@hidden>
- Date: Wed, 21 Aug 2002 23:53:26 +0200
>
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.
_____________________________________________________________
Pierre-Olivier Latour email@hidden
Lausanne, Switzerland
http://www.pol-online.net
_______________________________________________
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.