• 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
Re NSConnection on same machine between different users (via 10.3 fast switching)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re NSConnection on same machine between different users (via 10.3 fast switching)


  • Subject: Re NSConnection on same machine between different users (via 10.3 fast switching)
  • From: Chris Kane <email@hidden>
  • Date: Sat, 20 Dec 2003 14:29:12 -0800

On Dec 11, 2003, at 1:11 AM, John Scalo wrote:

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:
[...]
Then user B is fast switched in, and runs program B which tries to find this
connection like so:

The answer to the question is Yes, program A can vend a distributed object (and it remains vended) while another user B may happen to be switched in.

The question you really wanted to ask :-) was, "can an app run by user B connect to my other program running as user A which vends an object", and the answer is No.

Each logged in user has a separate namespace in which vended objects get vended, and there's no cross-talk. Nominally, user A and user B are unaware of each other (or rather, their apps are unaware).


NSDistributedNotificationCenter notifications are only slightly better-
sometimes they work and sometimes they don't.

Distributed notifications don't normally cross the boundary either. Having them do so causes things to get confused, often.


Chris Kane
Cocoa Frameworks, Apple
_______________________________________________
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: Re: NSConnection registerName limitations?
  • Next by Date: Re: What is the equivallent of CFMessagePortRef in Cocoa?
  • Previous by thread: Splash screens
  • Next by thread: Re: CFPropertyList and NSDictionary/CFDictionary
  • Index(es):
    • Date
    • Thread