Threaded NSConnection "listen"
Threaded NSConnection "listen"
- Subject: Threaded NSConnection "listen"
- From: "Terence G4 Mac" <email@hidden>
- Date: Sun, 19 Jan 2003 00:46:51 +0000
Hi all,
I've got an NSConnection which exposes parts of my app to the outside world,
created in the awakeFromNib, as such...
appConnection = [[NSConnection alloc] init];
[appConnection setRootObject:self];
[appConnection enableMultipleThreads];
[appConnection registerName:@"net.myapp.info"];
For the most part, everything works fine. However, if the main thread gets
blocked or busy with something, the NSConnection isn't able to answer
incoming requests and the external calling app/thread starts behaving very
oddly.
So, what I'd like to try to figure out is whether or not it's possible to
stick the NSConnection object (and possibly the things that need to be
exposed) into a separate thread whose job it would be to handle these
requests so that nothing is waiting on the main thread.
I realize I'd likely need a different root object, but beyond that, my
knowledge of cocoa threads simply won't cut it. :)
Any thoughts or suggestions would be greatly appreciated :)
Thanks,
Terence
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
_______________________________________________
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.