• 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: [Semi-OT] "defaults write" for arrays?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: [Semi-OT] "defaults write" for arrays? (From: Piers Uso Walter <email@hidden>)

  • Prev by Date: Need to subclass NSTextView or not
  • Next by Date: Re: Database applications
  • Previous by thread: Re: [Semi-OT] "defaults write" for arrays?
  • Next by thread: Small sockets, autorelease etc PART II
  • Index(es):
    • Date
    • Thread