Squeak Class Documentation category index | class index  
 
DoCommandOnceMorph
  category: Morphic-Basic
  superclass: BorderedMorph
  subclasses:

I am used to execute a once-only command. My first use was in loading/saving the current project. In such cases it is necessary to be in another project to do the actual work. So an instance of me is added to a new world/project and that project is entered. I do my stuff (save/load followed by a re-enter of the previous project) and everyone is happy.

instance methods
  as yet unclassified
  actionBlock:
addText:
initialize
openInWorld:
step
stepTime
wantsSteps

class methods
  no messages
 

instance methods
  as yet unclassified top  
 

actionBlock:


 

addText:


 

initialize


 

openInWorld:

Add this morph to the requested World.


 

step

Do some periodic activity. Use startStepping/stopStepping to start and stop getting sent this message. The time between steps is specified by this morph's answer to the stepTime message. The generic version dispatches control to the player, if any. The nasty circumlocation about owner's transformation is necessitated by the flexing problem that the player remains in the properties dictionary both of the flex and the real morph. In the current architecture, only the top renderer's pointer to the player should actually be honored for the purpose of firing.


 

stepTime

Answer the desired time between steps in milliseconds. This default implementation requests that the 'step' method be called once every second.


 

wantsSteps

Return true if the receiver overrides the default Morph step method.


class methods
  no messages top