[squeak-dev] The Trunk: Morphic-mt.886.mcz

Bert Freudenberg bert at freudenbergs.de
Thu Apr 16 21:18:56 UTC 2015


On 16.04.2015, at 12:39, Marcel Taeumel <marcel.taeumel at student.hpi.uni-potsdam.de> wrote:
> 
> Why? It just fetches the mouse position directly through the VM because we
> cannot rely of regular event processing in this case. I consider "Sensor
> cursorPoint" quite valuable for these situations as we seem have no
> alternative for this case...

Has nobody ever mention that global variables are bad? ;)

Anyway, it violates the abstraction of Morphic by reaching down to the underlying low-level interface. For example, it breaks if you put the world into a window, or into an OpenGL texture, etc. For the same reason, you should not access Display directly.

- Bert -



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4115 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20150416/59426e40/smime.bin


More information about the Squeak-dev mailing list