|
Hi,
I'm just getting started with Dolphin, and have a question about
#trigger: and #when:send:to: selectors.
I'm trying to signal an event in a model that will be detected by the
presenter associated with the model. In my model, I do something like
this--
MyModel>>doSomethingUseful
"yada yada"
self trigger: #myImportantInfo.
In my Presenter --
MyPresenter>>createSchematicWiring
super createSchematicWiring.
self model when: #myImportantInfo send: #doMyThing to: self.
My problem: when doSomethingUseful is invoked, it doesn't cause the
desired effect for my presenter....doMyThing is never called. Am I
missing something here, or is #trigger: not a general-purpose
notification mechanism? If not, how does one create user-defined
events?
Thanks for the help...
Keith
|