|
18-03-09 / 22:59 : Cappuccino/serialization : CPKeyedArchiver/JSON/plist (cjed) | The site nice-panorama.com provides tutorials on Cappuccino, and notably a new one about serialization solutions for client/server communications : CPKeyedArchiver/CPKeyedUnarchiver (extends CPCoder and requires to implement the CPCoding protocol in custom classes), JSON and CPPropertyListSerialization (plist format, that is also available on OSX/Objective-C FoundationKit, in XML and now also in binary for better space management). The format produced by CPKeyedArchiver doesn't have an equivalent in Objective-C, and property list (plist) don't allow to manage custom objects (moreover Cappuccino's CPPropertyListSerialization doesn't manage yet arrays nor Date type).
Then for now communication with an Objective-C backend isn't as easy as it could be. For a J2EE server side the JSON format is preferable (no native CPCoding equivalent in Java, nor plist format support). However JSON has to be extended in order for managing custom objects namespace (that is what CP2JavaWS does, it can manage custom objects and nested collections). | | Comments | Write a comment | |
|