Re: NSUserDefault and Negative numerical arguments (Was: Posting mouse clicks with multiple displays)
Re: NSUserDefault and Negative numerical arguments (Was: Posting mouse clicks with multiple displays)
- Subject: Re: NSUserDefault and Negative numerical arguments (Was: Posting mouse clicks with multiple displays)
- From: Bill Bumgarner <email@hidden>
- Date: Tue, 11 Aug 2009 10:38:05 -0700
On Aug 11, 2009, at 10:31 AM, DeNigris Sean wrote:
What Alastar said; you have free reign over argv/argc prior to
calling NSApplicationMain().
Duh! You're right, I will just process them myself! I don't know
why I was so attached to making NSUserDefaults do what I wanted it
too - probably lack of sleep and frustration with the documentation.
Hardly; it would be a very desirable feature to have in the 'kit.
Actually, I would recommend that you grab DDCLI -- Dave Dribin's
command line argument processing toolkit. If you are building a
Foundation Tool or an NSApp that can take arguments, it is a must-have.
Fortunately, the license is MIT and, thus, you can use it without
restriction.
http://www.dribin.org/dave/blog/archives/2008/04/29/ddcli/
b.bum
_______________________________________________
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