[squeak-dev] The Trunk: ToolBuilder-MVC-tpr.50.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Nov 28 00:07:59 UTC 2017


tim Rowledge uploaded a new version of ToolBuilder-MVC to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-MVC-tpr.50.mcz

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

Name: ToolBuilder-MVC-tpr.50
Author: tpr
Time: 27 November 2017, 4:07:53.194506 pm
UUID: e349d745-4348-47a1-8ece-3c1f321463fe
Ancestors: ToolBuilder-MVC-tpr.49

Add convenience method to save a file via UIMananger

=============== Diff against ToolBuilder-MVC-tpr.49 ===============

Item was added:
+ ----- Method: MVCUIManager>>saveFilenameRequest:initialAnswer: (in category 'ui requests') -----
+ saveFilenameRequest: queryString initialAnswer: defaultAnswer 
+ 	"Open a FileSaverDialog to ask for a place and filename to use for saving a file. The initial suggestion for the filename is defaultAnswer but the user may choose any existing file or type in a new name entirely"
+ 	"MVC has to stick with the boring way of doing it"
+ 	| result |
+ 	result := self request: queryString initialAnswer: defaultAnswer.
+ 	^result isEmpty ifTrue: [nil] ifFalse:[result]
+ !



More information about the Squeak-dev mailing list