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

commits at source.squeak.org commits at source.squeak.org
Tue Jul 27 14:33:32 EDT 2010


A new version of Morphic was added to project Etoys Inbox:
http://source.squeak.org/etoysinbox/Morphic-Richo.32.mcz

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

Name: Morphic-Richo.32
Author: Richo
Time: 27 July 2010, 3:31:28 pm
UUID: ed26c85d-e04a-d446-8ffb-2cfe860e711f
Ancestors: Morphic-Richo.31

* Avoiding the error message when clicking "cancel" in the file exists warning

=============== Diff against Morphic-Richo.31 ===============

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].
+ 	[file
+ 		nextPutAll: (SmartRefStream streamedRepresentationOf: self topRendererOrSelf)]
+ 		ensure: [file close]!
- saveOnFile: fileName
- | file |
- file := [[(FileStream newFileNamed: fileName)] on: FileExistsException do: [:err | err defaultAction]] on: Error do: [:err | ^self inform: err description].
- [file nextPutAll: (SmartRefStream streamedRepresentationOf: self topRendererOrSelf)] ensure: [file close]!



More information about the etoys-dev mailing list