On Tue, Mar 15, 2011 at 5:49 PM, laurent laffont <[email protected]>wrote:
> On Tue, Mar 15, 2011 at 5:42 PM, DougEdmunds <[email protected]>wrote: > >> Let me change the scenario a little, using a class instance variable. >> >> 1. start with two clean images, image1.image and image2.image. >> >> 2. install the Contact Manager classes from >> http://www.pharocasts.com/2011/02/pharo-gui-with-polymorph.html >> into image1. >> >> 3. run the program "ContactListEditor open" and populate the database >> with some entries, i.e., "Fred Flintstone", "Barney Rubble", "Wilma >> Flintstone". >> Those entries are stored in the Contact class instance variable >> 'database'. >> >> 4. fileout the Category "Contact Manager" from image1.image. >> >> 5. open image2, and filein "ContactManager.st". >> >> 6. run "ContactListEditor open" in image2, the database is empty. >> >> How do I transfer the contents ("Fred Flintstone", "Barney Rubble", >> "Wilma Flintstone") stored in the Contacts class instance variable >> "database" >> from the image1 into image? >> > > > One way is to use a database. You can try SandstoneDB > http://www.pharocasts.com/2010/04/sandstonedb-simple-activerecord-style.html > > Or any object serializers, like SIXX (in XML), ReferenceStream and friends (this are even in PharoCore), ImageSegment, etc... Another common strategy is to store them in kind of code: users add: User name: 'Mariano'; add: User name: 'you'; .... > Laurent. > > > >> -- >> View this message in context: >> http://forum.world.st/Transferring-variable-values-to-another-image-tp3355928p3357111.html >> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. >> >> >
