First, THANKS FOR BREATHING NEW LIFE INTO SMALLTALK!!!!! |
Hi Sam, First of all thank you for your mail and your enthusiasm. It is exciting to see Moose getting used in unexpected contexts. Could you tell us more about your project? Also, what prompted you to choose Moose?
You are raising a good question. First, you do not need to create a whole pane to get a new port. Second, you can use a simple transmission that does not show anything. So, your code would be:
browser := GLMTabulator new. browser row:#numbers. browser transmit to: #numbers; andShow:[:a| a list display:[:n| 1to: n]]. browser transmit to: #numbers port: #x;
from: #numbers port: #strongSelection; when: [ :x | x notNil ]; transformed:[:x|
x explore. ((browser paneNamed: #numbers) port: #strongSelection) value: nil ]. browser openOn: 10.
But, the use case is not supported in Glamour explicitly. The reason is that we wanted to focus on data flow rather than on supporting all user interactions possible. So, in your case, if the only thing you want to do is open an explorer, you can see the problem in a different way and instead of wanting to open a window, you pass the value to some pane that happens to show an inspector. For such a use case, there exist an undervalued feature in Glamour called the Watcher. Try this: browser := GLMTabulator new. browser row:#numbers.
browser transmit to: #numbers; andShow:[:a| a list display:[:n| 1to: n]]. browser transmit toWatcher; from: #numbers port: #strongSelection;
andShow: [:a :x| a custom: GTInspector new ]. browser openOn: 10. And then press "Character space command shift" to toggle the Watcher window. You will get a preview window similar to the one on Mac, and if you double click on your list of numbers, the inspector will appear in the watcher (see the attached picture).
As you can see, we turn the problem around a bit. Let me know if it fits your needs. Cheers, Doru On Wed, Sep 11, 2013 at 4:17 PM, Sam Adams <[hidden email]> wrote:
"Every thing has its own flow"
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
In reply to this post by Sam Adams-2
Sam Adams wrote:
> First, THANKS FOR BREATHING NEW LIFE INTO SMALLTALK!!!!! > > Hi Sam, welcome to the list. I don't have an answer for you question, but as a sidebar, you might find Pharo Vision [1] an interesting read, if you have not seen it already. [1] http://www.pharo-project.org/download/pictures/be/j32hajf3kjdbsebqo0a9zc5tk8ekxt/pharovision.pdf cheers -ben _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
In reply to this post by Sam Adams-2
Thanks Sam. Our goal with Pharo/Moose … is indeed to be able to reinvent Smalltalk :)
I would love to be able to get a news that IBM is using Pharo and Moose. It would be so good for our public image. Could you let us more about your project? Stef On Sep 11, 2013, at 4:17 PM, Sam Adams <[hidden email]> wrote:
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Free forum by Nabble | Edit this page |