[squeak-dev] Re: Trying to undeerstand Morphic subclasses and step/stepAt:

Bob Arning arning315 at comcast.net
Sun Feb 5 12:40:24 UTC 2012


Look at the methods #wantsSteps.

Cheers,
Bob

On 2/5/12 7:29 AM, Dave Mason wrote:
> Hi Marcel,
>
> On 2012-Feb-5, at 2:04 , Marcel Taeumel wrote:
>
>> You need to call #startStepping if you want #step to get called frequently
>> according to #stepTime.
> Actually you don't with Squeak 4.2 and Pharo 1.3 (don't know about earlier versions), because Morph>>initialize does that. But just for completeness, I did that, and it made no difference.  My class is just:
>
> MorphExp>>initialize
> 	super initialize.
> 	self startStepping.
> 	self color: Color red lighter
> MorphExp>>step
> 	self halt
> MorphExp>>stepAt: t
> 	self halt
>
> and it doesn't halt if it is a subclass of SystemWindow, but does if it's any higher up the hierarchy.
>
>> Nevertheless, you may want to take a closer look at this project:
>> https://www.hpi.uni-potsdam.de/hirschfeld/trac/SqueakCommunityProjects/wiki/animations
> Thanks, but I don't want the issue about unloading, and I'm not worried about it being super-smooth animation.
>
> Also thanks for the link, because it looks like interesting things are happening at HPI!
>
> ../Dave
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20120205/6e69eff9/attachment.htm


More information about the Squeak-dev mailing list