2015-07-03 21:22 GMT+02:00 Nicolai Hess <nicolaihess@web.de>:
you can save the image with the�� shortcut cmd+shift+s
the shortcut action is:

[ Smalltalk snapshot: true andQuit: false.
�� UIManager default inform: 'Image saved' ]

Save the image and show a notification.

If you do this shortuct, the image is saved and you'll see the notification - ok.

If you close the image, without saving again and open the image again,
it starts with showing this notification again.

How can this work? The notification was sent after the image was saved.


It's the activeProcess that saves the image right?
And the activeProcess is being part of the saved image...
So guess which activeProcess will get restored when the image is restarted (resumed)?

Normally, snapshoting used to answer a boolean indicating whether the image is resuming or not.
If this hasn't changed in Pharo, this should be something like:

[ (Smalltalk snapshot: true andQuit: false)
������������ ifFalse: [ UIManager default inform: 'Image saved' ] ]

Nicolas