NSConnection on same machine between different users (via 10.3 fast switching)
NSConnection on same machine between different users (via 10.3 fast switching)
- Subject: NSConnection on same machine between different users (via 10.3 fast switching)
- From: John Scalo <email@hidden>
- Date: Thu, 11 Dec 2003 01:11:33 -0800
In Panther should I be able to vend a distributed object from a program
running under user A while user B is fast switched in? In other words,
program A is running under user A and vends an object like so:
NSConnection *theConnection;
theConnection = [NSConnection defaultConnection];//also tried
[[NSConnection alloc] init]
[theConnection setRootObject:self];
[theConnection registerName:@"MyServerID"];
Then user B is fast switched in, and runs program B which tries to find this
connection like so:
NSDistantObject *myDO;
myDO = [NSConnection
rootProxyForConnectionWithRegisteredName:@"MyServerID"
host:nil];
Here, myDO is always NULL.
Program B is the only process running on the system vending an object with
that name. If both program A and B are running under the same user, it works
fine.
NSDistributedNotificationCenter notifications are only slightly better-
sometimes they work and sometimes they don't.
Is this supposed to work? I realize that the user is "logged out" in a
sense, but the process is still very much alive and processing. I wish the
Panther docs had more info about how things behaved, or are supposed to
behave, in the new fast switched user environment.
Thanks
John
_______________________________________________
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.