|
| | | | |
Developer’s API - 4 |
|
|
Call the Engine, cont. |
|
|
rootProxy = [NSConnection rootProxyForConnectionWithRegisteredName:PStillFilterServer host:@""];
}
// We could also try to launch PStill at this point, using
// the NSWorkspace protocol.
if (!rootProxy) {
if (![[NSWorkspace sharedWorkspace] launchApplication:@"PStill"]) {
USAGE;
return nil;
}
sleep(WAKE_UP_WAIT);
rootProxy = [NSConnection rootProxyForConnectionWithRegisteredName:PStillFilterServer host:@""];
}
if (!rootProxy) {
fprintf(stderr,"Can't connect to PStill\n");
return nil;
}
[rootProxy setProtocolForProxy:@protocol(PStillVended)];
result = (id<PStillVended>)rootProxy;
return result;
}
|
|
|