Re: NSApplicationMain options
Re: NSApplicationMain options
- Subject: Re: NSApplicationMain options
- From: Dave Dribin <email@hidden>
- Date: Sat, 14 Jul 2007 20:11:14 -0500
On Jul 14, 2007, at 2:57 PM, Tommy Nordgren wrote:
What options does NSApplicationMain recognize?
I want to add additional command line options with parameters to my
executable during debugging,
to set limits for allowable resource usage, and I need to avoid
using any options already recognized
by Cocoa, as well as filter away any options I uses before calling
NSApplicationMain
Just use "hidden" NSUserDefaults preferences. Command line arguments
automatically get converted into preferences. See NSArgumentDomain:
<http://developer.apple.com/documentation/Cocoa/Conceptual/
UserDefaults/Concepts/DefaultsDomains.html>
And an example:
<http://unixjunkie.blogspot.com/2006/07/command-line-processing-in-
cocoa.html>
-Dave
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden