• 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: 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.

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

  • Prev by Date: Re: NSTimer in a secondary thread?
  • Next by Date: NEWBIE: preferences - howto?
  • Previous by thread: Re: NSTimer in a secondary thread?
  • Next by thread: Re: NSTimer in a secondary thread?
  • Index(es):
    • Date
    • Thread