![]() | |
![]() | |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | |
![]() |
#step, then that method will be called once every second (see Morph method stepTime) as long as it is open in an active morphic world. To change the update period, modify the method
#stepTimeto return a different number of seconds.
#stepis that the model of a SystemWindow can also be stepped. The relevant methods are
#wantsStepsIn:and
#stepIn:.
#stepis probably to make animated morphs which update their appearance periodically. However, it is a general mechanism that allows some interesting designs. In particular, anywhere that a thread would normally be used, one can consider polling from
#stepinstead. The downside is that there is more latency between polls; the upside is that the method has no synchronization worries, and in particular it can freely make changes to the current morphic world.