Cocoa GUI app invocation from CLI with arguments

2008-03-31 Thread Mac QA
Hi, In the past I have written a few little Cocoa programs that when double-clicked are opened in GUI mode, or can also be invoked from the CLI by passing in a few arguments. In those situations when invoking from the CLI I never actually displayed a GUI, but just performed the same core

Re: Cocoa GUI app invocation from CLI with arguments

2008-03-31 Thread Mac QA
On 3/31/08, Jean-Daniel Dupas [EMAIL PROTECTED] wrote: You can get cli arguments at anytime using NSProcessInfo. - [[NSProcessInfo processInfo] arguments]; Awesome! This looks to be a much better method than parsing argv inside main before calling NSApplicationMain, which is what I've