Re: NSEnumerator ordering ?
Re: NSEnumerator ordering ?
- Subject: Re: NSEnumerator ordering ?
- From: Cameron Hayne <email@hidden>
- Date: Wed, 3 Jul 2002 17:03:52 -0400
This issue (whether to use: <key>foobar</key>
<string>keyvalue</string>
or: <key
name="foobar>keyvalue</key> )
has generated a lot of discussion among XML experts.
See:
http://xml.coverpages.org/elementsAndAttrs.html
IMHO, the best rule-of-thumb is: make it an element if the thing can be
considered as an object in its own right. But it isn't clear what that
rule would imply for the info.plist.
... Cameron
--
Cameron Hayne (email@hidden)
Hayne of Tintagel
On Wednesday, July 3, 2002, at 03:34 pm, Thomas Harrington wrote:
On Wednesday, July 3, 2002, at 01:18 PM, 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.
It's nice to see someone else say that. I had much the same thought on
a recent project; while the plist format's convenience makes it tempting
for Cocoa apps, it just didn't look like good XML style. But being new
to XML I wasn't really sure. Ultimately I decided it just wan't
suitable in my case.
_______________________________________________
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.