PDA

View Full Version : Cairngorm question


kminev
04-28-2009, 10:06 PM
I have a simple question about cairngorm events.

Lets sat from my view I execute myEvent.dispatch() which it triggers a command that queries data and stores it to my modelLocator.

My question is when I dispatch the event from anywhere how do I know when the data is received in my modelLocator variable?

Assume I have everything configured properly.


Thanks in advance.

Peter Cowling
04-28-2009, 10:56 PM
Hi,

You can use the observer class. Not sure from memory where the source for this is, but it should be pretty findable on Google.

kminev
04-29-2009, 12:08 AM
what is the purpose of the observer class?

Peter Cowling
04-29-2009, 10:24 AM
It observes variables on the model.