Hi,
Unfortunately, the Magritte support is not quite what it could be. Your use case sounds
quite reasonable, but it is not yet supported.
Perhaps we can just add
GLMMagrittePresentation>>onAnswer:
and have the renderer use this.
Cheers,
Doru
On Sep 15, 2011, at 14:54, Esteban Lorenzano <estebanlm(a)gmail.com> wrote:
Hi,
I'm making some progress here... but now I need another feature.
As I'm using glamour and magritte to present some data who is persistent, I need to
being able to react to a #save call on a magritte presentation.
For instance... in my browser:
...
browser transmit
to: #detail;
from: #list;
andShow: [ :presenter |
presenter magritte
title: [ :anItem | anItem asString ];
act: [ :presentation :anItem | self removeItem: anItem ]
icon: LWUIIcons / #userTrash
entitled: 'Borrar' ].
...
how can I know if user pressed #save and there is a modified object there? (to update
persistent repository)
working with plain magritte, I'd do:
...
anObject asMorph
onAnswer: [ :value | blah, blah ];
morph.
...
...so... is there a way in glamour to react to updated objects?
cheers,
Esteban
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev