Hi,
I'm reviewing my code, now that I have a better understanding of ports, transmissions and panes. I have nested browsers in my project: a tree that calls a generic node view, but when tagged it calls a custom node view which is a "sub-browser". For this I think that is better to use "onChangeOfPort: act:" instead of the "hacky" way of sending message to #nirvana or #nowhere ports. So, for example I have this minimal example to create a browser: http://ws.stfx.eu/CTGIBTCE70JL How can I change it to use "onChangeOfPort: act:" to update automatically the values in the dict instead of using "to: #values port: #nirvana;"? Thanks, Offray _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Hi, Unfortunately, this is not possible because your code depends on two ports :(. But, thanks for the case. While your #nirvana solution is quite good for this case, it's a good case to remember for future development. Cheers, Doru On Sun, Feb 8, 2015 at 8:01 PM, Offray Vladimir Luna Cárdenas <[hidden email]> wrote: Hi, _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Btw, this was a good example of a question that was easy to answer. It was short, clear, technical and easily reproducible. Keep it up. Cheers, Doru On Sun, Feb 8, 2015 at 8:40 PM, Tudor Girba <[hidden email]> wrote:
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Thanks. Putting details on my blog post help me to create a better
balance between context and detailed questions. The last one about connecting playgrounds with the document tree is a bit longer, but I think that still tries that balance. Hopefully you will have time to give it a look. Cheers, Offray El 08/02/15 a las 14:41, Tudor Girba escribió: > Btw, this was a good example of a question that was easy to answer. It was > short, clear, technical and easily reproducible. Keep it up. > > Cheers, > Doru > > On Sun, Feb 8, 2015 at 8:40 PM, Tudor Girba <[hidden email] > <mailto:[hidden email]>> wrote: > > Hi, > > Unfortunately, this is not possible because your code depends on two ports :(. > > But, thanks for the case. While your #nirvana solution is quite good for > this case, it's a good case to remember for future development. > > Cheers, > Doru > > > > On Sun, Feb 8, 2015 at 8:01 PM, Offray Vladimir Luna Cárdenas > <[hidden email] <mailto:[hidden email]>> wrote: > > Hi, > > I'm reviewing my code, now that I have a better understanding of ports, > transmissions and panes. I have nested browsers in my project: a tree > that calls a generic node view, but when tagged it calls a custom node > view which is a "sub-browser". For this I think that is better to use > "onChangeOfPort: act:" instead of the "hacky" way of sending message to > #nirvana or #nowhere ports. > > So, for example I have this minimal example to create a browser: > > http://ws.stfx.eu/CTGIBTCE70JL > > How can I change it to use "onChangeOfPort: act:" to update > automatically the values in the dict instead of using "to: #values port: > #nirvana;"? > > Thanks, > > Offray > > _________________________________________________ > Moose-dev mailing list > [hidden email] <mailto:[hidden email]> > https://www.iam.unibe.ch/__mailman/listinfo/moose-dev > <https://www.iam.unibe.ch/mailman/listinfo/moose-dev> > > > > > -- > www.tudorgirba.com <http://www.tudorgirba.com> > > "Every thing has its own flow" > > > > > -- > www.tudorgirba.com <http://www.tudorgirba.com> > > "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 |
Free forum by Nabble | Edit this page |