[Pyobjc-dev] NSCoding support for Python objects
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@ma...> - 2008-05-01 08:39:36
|
Hi, I've just commited a patch that adds support for the NSCoding support to the OC_Python* classes that bridge Python objects into the Objective-C world. This means that it is now possible to use an NSKeyedArchiver to store plain Python objects (basicly anything that can be stored in a pickle). The tree might be a but unstable due to this change, getting this to work correctly was more work that I had expected and there are some changes that might affect other code (such as a new OC_PythonNumber class that bridges python numbers). Archiving support passes all unittests, but hasn't been used beyond that which means there might still be bugs lurking in there. The code only support keyed archiving for now, although adding support for the older coding protocol should be trivial now that the basic machinery works. Ronald |