Skip to content

Instantly share code, notes, and snippets.

@tommetge
Created October 21, 2013 18:10
Show Gist options
  • Save tommetge/7088338 to your computer and use it in GitHub Desktop.
Save tommetge/7088338 to your computer and use it in GitHub Desktop.
NSConnection *c = [NSConnection connectionWithRegisteredName:kNameConstantWhateverYouCalledIt
host:nil];
if (!c) {
NSLog(@"Could not connect to helper.");
return;
}
[c setRequestTimeout:3];
[c setReplyTimeout:3];
@try {
Helper *helper = (Helper*)[c rootProxy];
}
@catch (NSException *exception) {
NSLog(@"Failed to get helper: %@", exception);
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment