Re: NSApplication and command line args

2009-05-09 Thread Ken Thomases
On May 8, 2009, at 5:03 PM, Andrew Farmer wrote: A much simpler solution would be to preprocess the arguments which you pass to NSApplicationMain. Run through everything in argv, then create a new array of arguments from that with all arguments your application wants to handle removed and p

Re: NSApplication and command line args

2009-05-08 Thread Andrew Farmer
On 08 May 09, at 15:48, Kyle Sluder wrote: On Fri, May 8, 2009 at 6:03 PM, Andrew Farmer wrote: A much simpler solution would be to preprocess the arguments which you pass to NSApplicationMain. Run through everything in argv, then create a new array of arguments from that with all arguments

Re: NSApplication and command line args

2009-05-08 Thread Kyle Sluder
On Fri, May 8, 2009 at 6:03 PM, Andrew Farmer wrote: > A much simpler solution would be to preprocess the arguments which you pass > to NSApplicationMain. Run through everything in argv, then create a new > array of arguments from that with all arguments your application wants to > handle removed

Re: NSApplication and command line args

2009-05-08 Thread Andrew Farmer
On 07 May 09, at 12:36, Brian Arnold wrote: I have recently converted an application which processes command line arguments to call NSApplicationMain when it starts up, and defer command line processing until later in a separate thread. The deferred command line processing still works; however,

NSApplication and command line args

2009-05-08 Thread Brian Arnold
Hi, For those of you familiar with handling command line arguments with an NSApplication, I am requesting a reality-check whether I am understanding the following problem correctly, and whether the proposed solution makes sense. Please reply directly to me off-line unless you believe the answer