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

Re: NSUserDefaults


  • Subject: Re: NSUserDefaults
  • From: Greg Guerin <email@hidden>
  • Date: Sat, 2 Oct 2010 14:14:40 -0700

David Blanton wrote:

Can key/values for user NSUserDefaults be set in xcode?


Describe exactly what you mean.

If you mean "Can I write a Shell Script Build Phase that runs the 'defaults' command to set some keys to certain values, for a particular bundle identifier, for the current user?", then the answer is "Yes". You could also use the 'PlistBuddy' command to accomplish similar things: /usr/libexec/PlistBuddy. Both commands have man pages.

If you mean something else, you'll have to explain exactly what you want to happen.

  -- GG
_______________________________________________
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: NSUserDefaults
      • From: Christiaan Hofman <email@hidden>
    • Re: NSUserDefaults
      • From: David Blanton <email@hidden>
  • Prev by Date: Re: NSUserDefaults
  • Next by Date: Re: NSUserDefaults
  • Previous by thread: Re: NSUserDefaults
  • Next by thread: Re: NSUserDefaults
  • Index(es):
    • Date
    • Thread