RTView>>view

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

RTView>>view

Tudor Girba-2
Hi,

To smoothen the difference between builders and view, I added the following method:

RTView>>view
"This method is meant to be used polymorphically with builders.
Thus, regardless of whether we get a raw view or a builder, we 
can uniformly obtain the view"
^ self

This is particularly useful in situations like:

self act: [ :roassal | RTZoomOutMove on: roassal view view ]
icon: GLMUIThemeExtraIcons glamorousZoomOut
entitled: 'Zoom out'

Here roassal is either a view or a builder.

Doru

--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: RTView>>view

abergel
It makes sense yes

Alexandre


-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On Apr 15, 2014, at 3:08 AM, Tudor Girba <[hidden email]> wrote:

Hi,

To smoothen the difference between builders and view, I added the following method:

RTView>>view
"This method is meant to be used polymorphically with builders.
Thus, regardless of whether we get a raw view or a builder, we 
can uniformly obtain the view"
^ self

This is particularly useful in situations like:

self act: [ :roassal | RTZoomOutMove on: roassal view view ]
icon: GLMUIThemeExtraIcons glamorousZoomOut
entitled: 'Zoom out'

Here roassal is either a view or a builder.

Doru

--

"Every thing has its own flow"
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev