[squeak-dev] The Trunk: Morphic-mt.1942.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Mar 16 08:08:08 UTC 2022

Marcel Taeumel uploaded a new version of Morphic to project The Trunk:

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

Name: Morphic-mt.1942
Author: mt
Time: 16 March 2022, 9:08:04.25415 am
UUID: bdbb3cf7-5899-8046-b07a-996d8188c27c
Ancestors: Morphic-mt.1941

Add commentary about the 900-character compromise in dialog messages.

=============== Diff against Morphic-mt.1941 ===============

Item was changed:
  ----- Method: DialogWindow>>message: (in category 'accessing') -----
  message: aStringOrText
+ 	aStringOrText size > 900 ifTrue: [
+ 		"NOTE THAT this is an awkward compromise for clients misusing the medium of a dialog window. Because of a dialog's rather short lifespan, users should only be presented with compact content and a concise message. If you notice that your dialog is getting too tall or -- in this case -- wider than usual, please consider rewriting its message."
+ 		self messageMorph numCharactersPerLine: 65].
- 	aStringOrText size > 900
- 		ifTrue: [self messageMorph numCharactersPerLine: 65].
  	messageMorph contents: aStringOrText.
  	self setMessageParameters.!

More information about the Squeak-dev mailing list