Happy !
hernan / InstanceEncoder
Monticello registration
About InstanceEncoder
Helpers to encode and decode files or instances of any object that can be streamed to methods (either class or instance side). For example, did you ever want to store a graphic as a class side method so you can share your "external" or object instances using Monticello or other code-based sharing schemes?
Well -- that is primarily what this is for. Any external file or object instance can be stuffed into a class method as a MIME-encoded zipped string.
Installation
Gofer it
smalltalkhubUser: 'hernan' project: 'InstanceEncoder';
configurationOf: 'InstanceEncoder';
loadStable.
Examples
"Store a form as a class-side method":
MyClass store: picture form asSelector: #myGraphic
"Then in the instance-side of MyClass you can access this MIME-encoded object as if it is a regular Smalltalk object"
picture := self class myGraphic
"instance variable 'picture' now is automatically reconstituted from the MIME-encoded stream"
