• 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: simple NSRunLoop question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: simple NSRunLoop question


  • Subject: Re: simple NSRunLoop question
  • From: Mike Abdullah <email@hidden>
  • Date: Thu, 3 Dec 2009 02:07:48 +0000

On 3 Dec 2009, at 01:59, John Michael Zorko wrote:

>
> Hello, all ...
>
> i've done some googling, and read documentation for NSRunLoop and NSThread, but there's something I don't know: How do I get the run loop of a specific NSThread?  Something like:
>
> [streamerThread getCurrentRunLoop];
>
> ??

Simple answer is you don't. Runloops aren't thread safe, they're only designed to be access from the thread they "belong to". So you can easily get the runloop of the current thread (+currentRunLoop) but not of an arbitrary thread._______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >simple NSRunLoop question (From: John Michael Zorko <email@hidden>)

  • Prev by Date: simple NSRunLoop question
  • Next by Date: Re: Getting reference to NSWindowController from subviews
  • Previous by thread: simple NSRunLoop question
  • Next by thread: Disable horizontal scroll on NSScrollView
  • Index(es):
    • Date
    • Thread