/ Published in: Objective C
Instead of installing the real tools I install 2 trampoline applications in /usr/bin called respectively pdflock and pdfunlock. The trampoline then uses NSWorkspace to locate the bundle, and starts the real executable found in the application’s bundle.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
int main(int argc, char *argv[]) { const char *CStringPath = [targetPath UTF8String]; [pool release]; execv(CStringPath, argv); // You reach this code only if execv returns, which means that something wrong happened. [targetPath release]; return 0; }
URL: http://briksoftware.com/blog/?p=70