• 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 and Multiple User Accounts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSConnection and Multiple User Accounts


  • Subject: NSConnection and Multiple User Accounts
  • From: Keith Duncan <email@hidden>
  • Date: Wed, 28 Feb 2007 20:17:59 +0000

Does [[NSConnection defaultConnection] registerName:@""] register a distributed object across all login sessions?

I have a per user agent that registers as dawnAlarmAgent, see code below, however when there are multiple users logged in (and even when they've logged-out due to launchd agents being broken) I cannot comunicate with any of them. Is there a know reason for this behavior or is my code problematic?

- (void)setupAgentServer {
NSConnection *theAgentConnection = [NSConnection defaultConnection];

@try {
if (![theAgentConnection registerName:@"dawnAlarmAgent"]) [NSException raise:NSInternalInconsistencyException format:@"-[Agent setupAgentServer] couldn't register the agent server."];
else {
[theAgentConnection setRootObject:self];
[theAgentConnection setDelegate:self];
}
}
}
_______________________________________________


Cocoa-dev mailing list (email@hidden)

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


  • Prev by Date: Re: question about null
  • Next by Date: Problems subclassing NSWindowController while keeping bindings working
  • Previous by thread: Re: Giving an Image a Reflective Surface
  • Next by thread: Problems subclassing NSWindowController while keeping bindings working
  • Index(es):
    • Date
    • Thread