Re: NSTimer firing issue
Re: NSTimer firing issue
- Subject: Re: NSTimer firing issue
- From: Hasan Diwan <email@hidden>
- Date: Fri, 23 Jul 2004 10:08:06 -0700
Julian:
On Fri, 23 Jul 2004 00:41:22 -0700, Julian Pellico <email@hidden> wrote:
>
So this thread doesn't even have a run loop. So now that I have an
>
idea of what's going on, does anyone have a suggestion for how to get
>
this code to run on my main thread?
It seems like this should work, but it''s untested. Try:
if ([NSThread currentThread] != secondaryThread) { // following code
will be executed in main thread only
}
--
Cheers,
Hasan Diwan <email@hidden>
_______________________________________________
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.