• 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: NSApplicationMain options
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSApplicationMain options
      • From: Tommy Nordgren <email@hidden>
References: 
 >NSApplicationMain options (From: Tommy Nordgren <email@hidden>)

  • Prev by Date: [ANN] UKSoundFileRecorder
  • Next by Date: Request for help in getting table View to reflect fetch results
  • Previous by thread: NSApplicationMain options
  • Next by thread: Re: NSApplicationMain options
  • Index(es):
    • Date
    • Thread