• 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 in a secondary thread?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSTimer in a secondary thread?
      • From: Finlay Dobbie <email@hidden>
References: 
 >Re: NSTimer in a secondary thread? (From: Finlay Dobbie <email@hidden>)

  • Prev by Date: Re: Grabbing substring from a NSPipe
  • Next by Date: Re: NSTimer in a secondary thread?
  • Previous by thread: Re: NSTimer in a secondary thread?
  • Next by thread: Re: NSTimer in a secondary thread?
  • Index(es):
    • Date
    • Thread