[squeak-dev] PasteUpMorph>>#removeModalWindow has been deprecated --- what do we need to do?
H. Hirzel
hannes.hirzel at gmail.com
Mon Oct 9 09:52:52 UTC 2017
Hello
I start a separate thread for the issue brought up in the tread
MorphicProject subclass: #EtoysProject
To see it in action make sure
EToys-hjh.308.mcz
is loaded. It contains a fix for the menuTitleBorderColor which makes
the following Etoys project load smoothly.
Then drop the Etoys project file
http://squeakland.org/content/articles/attach/FollowRoad.012.pr
onto the desktop.
When I choose 'World menu' -> 'Previous project', the following happens
----------------------------------
Project class
----------------------------------
returnToPreviousProject
"Return to the project from which this project was entered. Do
nothing if the current project has no link to its previous project."
| prevProj |
prevProj := CurrentProject previousProject.
prevProj ifNotNil: [prevProj enter: true revert: false
saveForRevert: false].
---------------------
MorphicProject(Project)
enter: returningFlag revert: revertFlag saveForRevert: saveForRevert
"Install my ChangeSet, Transcript, and scheduled views as current
globals. If returningFlag is true, we will return to the project from
whence the current project was entered; don't change its
previousProject link in this case.
If saveForRevert is true, save the ImageSegment of the project
being left.
If revertFlag is true, make stubs for the world of the project
being left.
If revertWithoutAsking is true in the project being left, then
always revert."
......
CurrentProject world triggerEvent: #aboutToLeaveWorld.
.....
----------------
PasteUpMorph
--------------------
triggerEvent: anEventSelector
"Evaluate all actions registered for <anEventSelector>. Return the
value of the last registered action."
^(self actionForEvent: anEventSelector) value
------------------------
PasteUpMorph
------------------------
removeModalWindow
self deprecated: 'The global becomeModal is no longer supported, use
e.g. a dialog window'.
"self modalWindow: nil"
As mentioned in the thread
MorphicProject subclass: #EtoysProject
the issue may be "resolved" by just commenting out the deprecation message.
removeModalWindow
"self deprecated: 'The global becomeModal is no longer supported, use
e.g. a dialog window'. "
self flag: #fixMe.
"self modalWindow: nil"
Should we do this for the moment until is is more clear how the
navigation mechanism in Etoys works?
Other suggestions?
Kind regards
Hannes Hirzel
More information about the Squeak-dev
mailing list
|