[etoys-dev] Etoys Inbox: Morphic-Richo.31.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Jul 26 17:27:59 EDT 2010

A new version of Morphic was added to project Etoys Inbox:

==================== Summary ====================

Name: Morphic-Richo.31
Author: Richo
Time: 26 July 2010, 6:26 pm
UUID: a181e53b-e988-734c-a655-edb3bbaec7b3
Ancestors: Morphic-Richo.30

* Modified Morph>>#saveOnFile: to show a warning if the file already exists.

=============== Diff against Morphic-Richo.30 ===============

Item was changed:
  ----- Method: Morph>>saveOnFile: (in category 'fileIn/out') -----
  saveOnFile: fileName
  | file |
+ file := [[(FileStream newFileNamed: fileName)] on: FileExistsException do: [:err | err defaultAction]] on: Error do: [:err | ^self inform: err description].
- file := (FileStream forceNewFileNamed: fileName).
  [file nextPutAll: (SmartRefStream streamedRepresentationOf: self topRendererOrSelf)] ensure: [file close]!

More information about the etoys-dev mailing list