Acquiring an NSConnection otherwise than by registered name?
Acquiring an NSConnection otherwise than by registered name?
- Subject: Acquiring an NSConnection otherwise than by registered name?
- From: Oleg Krupnov <email@hidden>
- Date: Tue, 28 Sep 2010 08:24:58 +0300
Hi,
Here is the way to acquire connection from a server, as described in the docs:
NSConnection* theConnection = [NSConnection
connectionWithRegisteredName:@"server" host:nil];
My question is: is it possible to acquire the connection in another
way than using a name?
Why I want this: My client process has many threads, and the server
process must create a thread for each client thread. If I register all
connections by names, there's going to be many connections visible in
the system to other processes as well, and their names can clash etc.
My idea is to create a single named connection and then somehow pass
other connections through the first one.
Is this possible?
Can something like this be valid?
[pseudocode]
NSConnection* theConnection = (by ref)[rootProxy openNewConnection];
Thanks,
Oleg.
_______________________________________________
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