Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: Facade listen to Notifications?  (Read 2841 times)
jaxim
Full Member
***
Posts: 22


View Profile Email
« on: March 31, 2010, 09:46:03 »

How can I get my facade instance directly to listen to a notification?
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 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>
Logged
Pages: [1]
Print