Well, since Pharo 4 has not official stable release yet, I will stick to my
few additional lines of code making it compatible with both Pharo 3 and 4.
I added mcz files to both archives, so...
The one with changed API to the one of new MouseWheelEvent (which I prefer):
The one with same API as old MouseWheelEvent and TRMouseWheelEvent, except
of instance creation (because it uses my new metod which translates Pharo 4
to Pharo 3-like event directions):
About change set... what is it and how could I have got it? :)
Thanks for looking into this!
Keeping Roassal backward compatible with Pharo 3 is not a priority. Can
you provide a .mcz or a change set of your fix please? I would be happy to
include it in the main release of Roassal.
> On Feb 22, 2015, at 4:47 PM, Jan B. <
> We use Roassal on Pharo 4, but we ran across another compatibility issue.
> On Pharo 4, MouseWheelEvent class got a little rework. It does not use
> symbols #up and #down as direction anymore, not even via accessors.
> TRMouseWheelEvent copies this direction, so because RTZoomableView looks
> these symbols, it is no longer working on Pharo 4 (mouse wheel now just
> moves camera, but does not change scale).
> More info about this Pharo 4 change you might find here:
> I tried to make few changes to make it compatible in both Pharo 3 and 4.
> One option is just adding two methods into TRMouseWheelEvent which
> Pharo 4 direction to Pharo 3 direction, so only interface change is when
> creating TRMouseWheelEvent, usage of this event is absolutely same.
> Second option is to rework TRMouseWheelEvent in the same way
> got changed, so they will have same usage on Pharo 4, but it means even
> interface of TRMouseWheelEvent changes and everything that asks for its
> direction has to be changed, too.
> Third option is to use your own solution instead of mine.
> And last solution might be just ignoring it and not trying to be
> with both Pharo versions.
> Jan Blizničenko
> View this message in context:
> Sent from the Moose mailing list archive at Nabble.com
> Moose-dev mailing list
Alexandre Bergel http://www.bergel.eu
Moose-dev mailing list
View this message in context:
Sent from the Moose mailing list archive at Nabble.com