• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSUserDefault and Negative numerical arguments (Was: Posting mouse clicks with multiple displays)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: NSUserDefault and Negative numerical arguments (Was: Posting mouse clicks with multiple displays) (From: DeNigris Sean <email@hidden>)
 >Re: NSUserDefault and Negative numerical arguments (Was: Posting mouse clicks with multiple displays) (From: Alastair Houghton <email@hidden>)
 >Re: NSUserDefault and Negative numerical arguments (Was: Posting mouse clicks with multiple displays) (From: Kyle Sluder <email@hidden>)
 >Re: NSUserDefault and Negative numerical arguments (Was: Posting mouse clicks with multiple displays) (From: Bill Bumgarner <email@hidden>)
 >Re: NSUserDefault and Negative numerical arguments (Was: Posting mouse clicks with multiple displays) (From: DeNigris Sean <email@hidden>)

  • Prev by Date: Re: NSUserDefault and Negative numerical arguments (Was: Posting mouse clicks with multiple displays)
  • Next by Date: Possible to work around 10.4 LaunchAgent bugs?
  • Previous by thread: Re: NSUserDefault and Negative numerical arguments (Was: Posting mouse clicks with multiple displays)
  • Next by thread: Re: NSUserDefault and Negative numerical arguments (Was: Posting mouse clicks with multiple displays)
  • Index(es):
    • Date
    • Thread