On 24/03/2011, at 12:24, Kyle Sluder wrote:
> On Wed, Mar 23, 2011 at 4:38 PM, WT <[email protected]> wrote:
>> How about using a property list file instead? Easier to import and export, 
>> and can be edited with tools such as Property List Editor, though your users 
>> might not know how to use it, or even have it.
> 
> I'd recommend *not* going the property list route. Property lists have
> a very simple internal structure that makes it difficult to express
> things like references to other objects. They're also pretty slow,
> particularly the XML flavor.
> 
> Also, don't use NSKeyedArchiver. That ties your on-disk representation
> to whatever class hierarchy was used to produce that file.
> 
> Using a custom XML format is definitely the way to go, especially if
> you publish a DTD. It makes it easy for others to import your file or
> otherwise manipulate it using the rich set of XML tools on the market,
> including XSLT. A custom format means you can be much more selective
> in the amount of processing you perform on input, speeding up your
> import process.
> 
> --Kyle Sluder

Thanks Kyle, I'll do it in with the XML.

Best regards
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to