• 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: Property List Serialization in Sketch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Property List Serialization in Sketch (From: Gordon Apple <email@hidden>)

  • Prev by Date: Re: Garbage Collection Problem
  • Next by Date: Re: Capturing the Content of a IKImageBrowserView
  • Previous by thread: Re: Property List Serialization in Sketch
  • Next by thread: Re: Property List Serialization in Sketch
  • Index(es):
    • Date
    • Thread