The Trunk: Morphic-mt.962.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Morphic-mt.962.mcz

commits-2
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.962.mcz

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

Name: Morphic-mt.962
Author: mt
Time: 3 May 2015, 10:56:28.091 am
UUID: 7e9a02a2-169b-9d44-8450-3e0074dead2c
Ancestors: Morphic-mt.961

Never share the text instance between text morph and model. Change handling can break otherwise if that text instance will be referenced in the model.

=============== Diff against Morphic-mt.961 ===============

Item was changed:
  ----- Method: PluggableTextMorph>>acceptTextInModel (in category 'menu commands') -----
  acceptTextInModel
  "Inform the model that the receiver's textMorph's text should be accepted.
  Answer true if the model accepted ok, false otherwise"
  | textToAccept |
 
+ textToAccept := textMorph contents copy.
- textToAccept := textMorph asText.
  ^setTextSelector isNil or:
  [setTextSelector numArgs = 2
  ifTrue: [model perform: setTextSelector with: textToAccept with: self]
  ifFalse: [model perform: setTextSelector with: textToAccept]]
  !