• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSConnection on same machine between different users (via 10.3 fast switching)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Threads and UI
  • Next by Date: Re: Xcode style deployment: debug-symbols?
  • Previous by thread: Re: Threads and UI
  • Next by thread: setuid to root App cannot compile NSAppleScript
  • Index(es):
    • Date
    • Thread