I think the LastImageName is confusing. It should be CurrentImageName or LastKnownImageName. In either way, this is not an image name, which were before you setting a new using #changeImageNameTo:, this is an image name, which you set. The thing is, that if you save an image, the value of this var will be held within an image, so if you rename the image and run squeak with it, the #imageName will return you a file name, while LastImageName is the name what was assigned last. This is how it works, if i'm not mistaken. However i don't see where LastImageName could be useful. 2010/1/18 Mariano Martinez Peck <marianopeck@gmail.com>:
Look at SmalltalkImage >> changeImageNameTo:
changeImageNameTo: t1 Â Â Â self imageName: t1 asSqueakPathName. Â Â Â LastImageName := self imageName
Here, it is putting to LastImageName the new one. Shouldn't be in the other order, like this:
changeImageNameTo: t1   LastImageName := self imageName   self imageName: t1 asSqueakPathName.
Maybe I misunderstood what LastImageName is
Thoughts?
Mariano
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Best regards, Igor Stasenko AKA sig.