Re: NSUserDefaults
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