Hi,
Ok, so I suppose that GLMContextChanged (or some "model" announcement) should
be triggered when a #selection: message is sent... the only problem is that the announcer
is being reset each time a copy is made (and I thing presenter copies are being used a lot
inside glamour)... and the announcement is lost.
Of course, I can call an announcer *outside* glamour, but that feels veeeeeeery hacky...
any idea of how to solve this issue will be very welcome :)
cheers,
Esteban
El 26/10/2010, a las 8:18a.m., Tudor Girba escribió:
Hi Esteban,
On 25 Oct 2010, at 23:50, Esteban Lorenzano wrote:
Ok... I'll try to explain my scenario, I
think I must be something wrong:
1) I'm embedding a browser in my own window (I'm not opening them using
#openOn:). btw, this leads to an override in GLMMorphicPaneRenderer>>#render: to
check if window is nil)
2) Outside the glamour browser, in another place of the window, I have a bunch of
buttons.
3) that buttons should be enabled/disabled depending some of the selections of the
browser
I hope this made my needs clearer... and of course, if I'm using glamour in a wrong
way, please let me know.
As I understand, you need announcements from inside Glamour. In this case you should try
to not depend on the announcements specific to Morphic, because those can change all the
time (they are supposed to be internal). Instead, if you must react to something inside,
you should always go through the model of Glamour. Unfortunately, at the moment, there is
no aggregator of all announcements inside a browser, but you can try to hook to the
existing announcements. In particular, you are interested in getting GLMContextChanged
from the presentations inside the panes of the browser (look at references, in tests).
Still, I would like to ask about the use case. Why would you need to embed this browser
in an external context. Is it because that context is not handleable by Glamour?
Cheers,
Doru
Cheers,
Esteban
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
www.tudorgirba.com
"Value is always contextual."
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch