diff --git a/Dialog2.h b/Dialog2.h index 1948603..e82d5e4 100644 --- a/Dialog2.h +++ b/Dialog2.h @@ -4,7 +4,7 @@ #define DialogServerConnectionName @"com.macromates.dialog" @protocol DialogServerProtocol -- (void)hello:(id)anArgument; +- (void)connectFromClientWithOptions:(id)anArgument; @end #ifndef enumerate diff --git a/Dialog2.mm b/Dialog2.mm index 461e083..132e973 100644 --- a/Dialog2.mm +++ b/Dialog2.mm @@ -62,7 +62,7 @@ - (void)dispatch:(id)options [interface writeStringToError:@"unknown command, try help.\n"]; } -- (void)hello:(id)options +- (void)connectFromClientWithOptions:(id)options { [self performSelector:@selector(dispatch:) withObject:options afterDelay:0.0]; } diff --git a/tm_dialog2.mm b/tm_dialog2.mm index 1cbd42b..5fa06bf 100644 --- a/tm_dialog2.mm +++ b/tm_dialog2.mm @@ -93,7 +93,7 @@ int main (int argc, char const* argv[]) nil ]; - [proxy hello:dict]; + [proxy connectFromClientWithOptions:dict]; int stdin_fd = open_pipe(stdin_name, O_WRONLY); int stdout_fd = open_pipe(stdout_name, O_RDONLY);