• 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
Passing non-string user defaults through command line arguments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Passing non-string user defaults through command line arguments


  • Subject: Passing non-string user defaults through command line arguments
  • From: Christiaan Hofman <email@hidden>
  • Date: Tue, 05 Apr 2011 18:53:30 +0200

Sometimes I want to test my app with a particular value for a user default. I do this by adding a command line argument (in the info for the executable in Xcode) for the user default key. This works for string values, however when the value needs to be something else (e.g. a boolean), I cannot get this to work. Is there a way to do this?

thanks,

Christiaan



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Passing non-string user defaults through command line arguments
      • From: "Justin C. Walker" <email@hidden>
  • Prev by Date: Re: running app made with external build tool
  • Next by Date: Re: Xcode 4 and unit tests
  • Previous by thread: Re: running app made with external build tool
  • Next by thread: Re: Passing non-string user defaults through command line arguments
  • Index(es):
    • Date
    • Thread