• 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: Christiaan Hofman <email@hidden>
  • Date: Sat, 2 Oct 2010 23:36:51 +0200

On Oct 2, 2010, at 23:14, Greg Guerin wrote:

> 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

Pretty sure that's not what he meant. My interpretation is that he wants to set the key/value pairs in an app's NSRegistrationDomain through an Xcode UI, so without going through registerDefaults: in code. Doesn't make much sense, as there isn't really a place where they should be stored.

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

References: 
 >Re: NSUserDefaults (From: Greg Guerin <email@hidden>)

  • Prev by Date: Re: NSUserDefaults
  • Next by Date: Re: NSUserDefaults
  • Previous by thread: Re: NSUserDefaults
  • Next by thread: Static Analyzer Question -- Suppressing Message in Special Circumstances
  • Index(es):
    • Date
    • Thread