NSStream and Threads
NSStream and Threads
- Subject: NSStream and Threads
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Mon, 04 Jul 2016 11:35:51 +0700
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.
_______________________________________________
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