Generating a new interpreter
Kevin Fisher
kfisher at rim.net
Tue Sep 22 12:32:48 UTC 1998
Dan Ingalls <DanI at wdi.disney.com> wrote:
Wow...thanks for the patch, Dan! That sure does the trick when you run
Squeak on an Xterminal on a busy LAN! I notice that CPU usage is also
way down with Squeak 2.2b...great stuff!
Also, thanks for the information about the interpreter.
>
> Kevin -
>
> >I performed the upgrade to Squeak 2.2 beta as per Dan Ingalls' instructions
> >and everything seems to work fine. However, I remember when I was attempting
> >to move from Squeak 2.0 -> 2.1 I could not get the interpreter to work properly
> >with the 2.1 image. With 2.2 I haven't recompiled interp.c, I'm using the
> >same executable I had with 2.1.
>
> This depends entirely on whether we make incompatible changes in the VM. There were a couple of bitblt changes in 2.1 that were somewhat incompatible.
>
> >So, my question is, do I need to generate a new interp.c from within my
> >updated Squeak 2.2b image, and recompile that? Or am I fine using what
> >I have? I haven't run into any problems so far... (Oh and I'm using
> >UNIX/X11 Squeak).
>
> You should be fine using what you have. There are a couple of improvements relating to Delays and LoopedSampledSounds, but no incompatibilities that we know of.
>
> >Oh and one more question...is there any way to turn off the 'opaque' movement
> >of Morphic windows? It isn't very fast on my machine and I'd rather the
> >windows become 'frames' (like MVC) when I move them, rather than being able to
> >see the contents as I move the window (slow!).
>
> We have not done this, but it should not be hard. If someone produced such a goodie, we would make it available as a preference.
>
> Oops - there I went and did it. Attached are two methods that should do what you want. I'll make it a preference.
>
> - Dan
>
> --============_-1305876480==_============
> Content-Type: text/plain; name="FrameHack-di.cs"; charset="us-ascii"
> Content-Disposition: attachment; filename="FrameHack-di.cs"
>
> 'From Squeak 2.2beta of Sept 16, 1998 on 19 September 1998 at 3:54:09 pm'!
>
> !SystemWindow methodsFor: 'events' stamp: 'di 9/19/1998 15:46'!
> handlesMouseDown: evt
> "If I am not the topWindow, then my mouseDown action dominates"
>
> ^ true! !
>
> !SystemWindow methodsFor: 'events' stamp: 'di 9/19/1998 15:52'!
> mouseDown: evt
> | cp offset newBounds |
> self activate.
> (Sensor redButtonPressed "If mouse is really still down after activate"
> and: [self labelRect containsPoint: evt cursorPoint]) ifTrue:
> [offset _ self position - Sensor cursorPoint.
> newBounds _ self bounds newRectFrom:
> [:f | Sensor cursorPoint + offset extent: self extent].
> self position: newBounds topLeft].
> model windowActiveOnFirstClick ifTrue:
> ["Normally window keeps control of first click.
> Need explicit transmission for first-click activity."
> cp _ evt cursorPoint.
> submorphs do: [:m | (m containsPoint: cp) ifTrue: [m mouseDown: evt]]]! !
>
>
>
> --============_-1305876480==_============--
More information about the Squeak-dev
mailing list
|