PureMVC Architects Lounge

Announcements and General Discussion => General Discussion => Topic started by: jaxim on March 31, 2010, 09:46:03



Title: Facade listen to Notifications?
Post by: jaxim on March 31, 2010, 09:46:03
How can I get my facade instance directly to listen to a notification?


Title: Re: Facade listen to Notifications?
Post by: puremvc on March 31, 2010, 09:56:41
Your facade doesn't need to listen for notifications. But if you wanted to tap into the flow of notifications in the app, you could override the Facade's sendNotification method.

For instance if you wanted to choke certain notifications temporarily during a given state, you could have that overridden sendNotification method check the note that was passed in against a filter list, and only call super with it if it's not on the list.

HTH,
-=Cliff>