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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to