[Semi-OT] "defaults write" for arrays?
[Semi-OT] "defaults write" for arrays?
- Subject: [Semi-OT] "defaults write" for arrays?
- From: Matt Gemmell <email@hidden>
- Date: Sun, 26 May 2002 21:41:29 +0100
Hi again all,
During development, I often have the need to alter the saved defaults
for my apps, sometimes before I have a UI to do so. I tend to just
change the saved defaults via the Terminal, using "defaults write...".
However, I can't seem to get it to work for an array of NSStrings.
Say I have a default whose key is MyArrayKey, and my app's domain is
com.my.app. Ideally, I'd like to be able to do something like this:
defaults write com.my.app MyArrayKey "String 1","String 2","String 3"
or
defaults write com.my.app MyArrayKey {"String 1","String 2","String 3"}
But that syntax doesn't work. Is it possible to change defaults which
are NSArrays of NSStrings via the command line, and if so, what's the
correct syntax?
Sorry for this semi-off-topic post.
Best,
-Matt
--
Matt Gemmell
Scotland Software
<
http://www.scotlandsoftware.com/>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.