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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to