[squeak-dev] The Trunk: ST80-mt.258.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Sep 17 07:15:53 UTC 2020


Marcel Taeumel uploaded a new version of ST80 to project The Trunk:
http://source.squeak.org/trunk/ST80-mt.258.mcz

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

Name: ST80-mt.258
Author: mt
Time: 17 September 2020, 9:15:53.534726 am
UUID: c7ff9de0-a71a-4646-a639-211d94848498
Ancestors: ST80-mt.257

Fixes processing of deferred actions in MVC. 

Note that windows in MVC delegate control to their sub-controllers, however, remaining the active controller from the project's world perspective (i.e. the controller manager). Thus, we have to process two deferred-action queues in for most cases. For example, the text field in a workspace involves a PluggableTextController, embedded in a StandardSystemController. Any do-it like "Project current addDeferredUIMessage: [...]" will add the message to the StandardSystemController's queue.

=============== Diff against ST80-mt.257 ===============

Item was changed:
  ----- Method: Controller>>controlActivity (in category 'control defaults') -----
  controlActivity
  	"Pass control to the next control level (that is, to the Controller of a 
  	subView of the receiver's view) if possible. It is sent by 
  	Controller|controlLoop each time through the main control loop. It should 
  	be redefined in a subclass if some other action is needed."
  
+ 	self processDeferredActions.
+ 	Project current world activeController processDeferredActions.
- 	[self deferredActionQueue isEmpty]
- 		whileFalse: [deferredActionQueue next value].
  	self controlToNextLevel!

Item was added:
+ ----- Method: Controller>>processDeferredActions (in category 'control defaults') -----
+ processDeferredActions
+ 	
+ 	[self deferredActionQueue isEmpty]
+ 		whileFalse: [deferredActionQueue next value].!

Item was changed:
  ----- Method: ParagraphEditor>>normalActivity (in category 'controlling') -----
  normalActivity
  	self processKeyboard.
+ 	self processMouseButtons.
+ 	super normalActivity.
+ 	!
- 	self processMouseButtons!



More information about the Squeak-dev mailing list