• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTimer firing issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: NSTimer firing issue
      • From: Julian Pellico <email@hidden>
References: 
 >NSTimer firing issue (From: Julian Pellico <email@hidden>)
 >Re: NSTimer firing issue (From: Julian Pellico <email@hidden>)

  • Prev by Date: Re: forcing a dialog to be the active (front) window
  • Next by Date: Re: Forwarding to Super
  • Previous by thread: Re: NSTimer firing issue
  • Next by thread: Re: NSTimer firing issue
  • Index(es):
    • Date
    • Thread