Re: Property List Serialization in Sketch
Re: Property List Serialization in Sketch
- Subject: Re: Property List Serialization in Sketch
- From: Jean-Daniel Dupas <email@hidden>
- Date: Thu, 10 Jan 2008 10:30:44 +0100
Le 10 janv. 08 à 04:52, Gordon Apple a écrit :
Sketch uses property list serialization rather than
encodeWithCoder,
encodeObject:forKey:, etc. Is there any particular advantage/
disadvantage
to this? Don't they ultimately do the same thing? If it is to set
up all
the KVOs, couldn't the same thing be done either way?
I should mention that I use only one type of graphic object class
for
everything, differentiated only by the content of a properties
dictionary.
(In fact, now that I've done it, I don't know why I didn't just make
that
class a subclass of NSMutableDictionary.)
encodeWithCoder: is for archiving, NSPropertyList is for serialization:
The two solution are valid and do not do the same thing. The
difference is discussed here:
http://developer.apple.com/documentation/Cocoa/Conceptual/Archiving/Concepts/objectgraphs.html
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden