Re: NSTimer firing issue
Re: NSTimer firing issue
- Subject: Re: NSTimer firing issue
- From: Julian Pellico <email@hidden>
- Date: Fri, 23 Jul 2004 12:20:37 -0700
Matt, your solution was right on. Wow, those Cocoa engineers thought
of everything...
The idea I came up with before I went to bed was to post an event
which should get picked up by the main thread. But that would be a bit
more code.
On Fri, 23 Jul 2004 10:08:06 -0700, Hasan Diwan <email@hidden> wrote:
>
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.
_______________________________________________
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.