NSConnection and Multiple User Accounts
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