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: Thu, 22 Aug 2002 00:25:14 +0200
>
> 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*. :-)
I remember trying [[NSRunLoop currentRunLoop] run] but it didn't change
anything. Actually, according the NSLogs outputs, this call was blocking
earlier, so it didn't even reach the [run] method:
[runLoop addTimer:[timer retain] forMode:[runLoop currentMode]];
_____________________________________________________________
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.