• 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: NSStream and Threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSStream and Threads


  • Subject: Re: NSStream and Threads
  • From: Charles Srstka <email@hidden>
  • Date: Mon, 04 Jul 2016 00:00:01 -0500

> On Jul 3, 2016, at 11:35 PM, Gerriet M. Denkmann <email@hidden> wrote:
>
> When I get an NSStream I do:
>
> aStream.delegate = myStreamDelegate;
> [ aStream scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode: NSDefaultRunLoopMode];
> [ aStream open];
>
> myStreamDelegate then receives stream:handleEvent: messages.
>
> The documentation says: “The message is sent on the stream object’s thread."
>
> Actually it is sent on the main thread.
>
> How can I set the “stream object’s thread” ?
>
> Gerriet.

What thread is the run loop on?

Charles

_______________________________________________

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


  • Follow-Ups:
    • Re: NSStream and Threads
      • From: "Gerriet M. Denkmann" <email@hidden>
References: 
 >NSStream and Threads (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: NSStream and Threads
  • Next by Date: Re: NSStream and Threads
  • Previous by thread: NSStream and Threads
  • Next by thread: Re: NSStream and Threads
  • Index(es):
    • Date
    • Thread