Re: [Semi-OT] "defaults write" for arrays?
Re: [Semi-OT] "defaults write" for arrays?
- Subject: Re: [Semi-OT] "defaults write" for arrays?
- From: Piers Uso Walter <email@hidden>
- Date: Mon, 27 May 2002 00:26:38 +0200
Regarding arrays in user defaults, I erroneously wrote:
defaults write com.my.app MyArrayKey ("String 1","String 2","String 3")
As Matt quickly discovered, this was wrong.
I meant to write:
defaults write com.my.app MyArrayKey "(\"String 1\",\"String
2\",\"String 3\")"
I should have tested this before replying.
This time it should work, though, as demonstrated byu the following
example:
piers@eric:117 ~:defaults read de.ilink.direct AppleLanguages
(German)
piers@eric:118 ~:defaults write de.ilink.direct AppleLanguages "(German,
English)"
piers@eric:119 ~:defaults write de.ilink.direct AppleLanguages "(German,
English, \"test 1\")"
piers@eric:120 ~:defaults read de.ilink.direct AppleLanguages
(German, English, "test 1")
With kind regards
Piers
--
Piers Uso Walter <email@hidden>
ilink Kommunikationssysteme GmbH
_______________________________________________
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.