[squeak-dev] versioning objects
Jimmie Houchin
j.squeak at cyberhaus.us
Tue Apr 15 22:15:40 UTC 2008
Hello,
I am writing a web app and I need to version the attributes of my
objects so that I can enable undo capabilities.
Is there a best practices way to offer such?
Currently I am implementing accessors which simply create an
OrderedCollection for each attribute.
id: anObject
id ifNil: [
id := OrderedCollection new.
id add: anObject].
(id = anObject) ifFalse: [id add: anObject]
obj id
^ id last
Is there a more standard or better way to offer such features?
Any wisdom greatly appreciated.
Jimmie
More information about the Squeak-dev
mailing list
|