Re: NSEnumerator ordering ?
Re: NSEnumerator ordering ?
- Subject: Re: NSEnumerator ordering ?
- From: email@hidden (Simon Fraser)
- Date: Wed, 03 Jul 2002 13:35:45 -0700
Ondra Cada wrote:
On Wednesday, July 3, 2002, at 09:18 , Simon Fraser wrote:
On this same note, doesn't it seem odd that the format of Info.plist
files is such that entry order matters? Entries are ordered like:
<key>foobar</key>
<string>keyvalue</string>
rather than nesting the key value under the key, something like:
<key name="foobar>keyvalue</key>
whichi is what a good XML citizen would use.
Maybe. XML is not my cup of tea, so I can't say. The only thing which --
as a XML-utterly-uneducated! -- I don't like on your design is the
(apparently?) different position of key and value -- the one being a
tag's attribute, the other being a plaintext value just delimited by
tags. What if the key itself happens not to be a string; a structured
object perhaps?
Would it not make a problem in your design?
OK, so:
<key name="foobar">
<string>foopy</string>
</key>
At least the nesting here indicates the relationship between keys
and their values, so that the meaning is not susceptible to ordering
changes. I'm told that the DTD specifies whether ordering matters;
as far as I can see, the PropertlyList.dtd does not say anything about
ordering.
Simon
_______________________________________________
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.