PureMVC Architects Lounge

Announcements and General Discussion => Fabrication => Topic started by: marks416 on March 27, 2009, 02:26:43



Title: Question about notification handler?
Post by: marks416 on March 27, 2009, 02:26:43
Hi,

We have two way to handle notifications ,that are handleNotification(note:INotification) and respondTo****(note:INotification).

May I use both method in same AS mediator file?

Thanks

Mark


Title: Re: Question about notification handler?
Post by: Tekool on March 28, 2009, 04:53:56
We cannot handle notification with respondTo**** natively. It is your responsibility to handle the notification in handleNotification and to redirect to your method respondTo**** next. So, to be precise, it is a mandatory to use both in your case.  :P


Title: Re: Question about notification handler?
Post by: Tekool on March 28, 2009, 07:34:17
Oh sorry, I didn't see that the question was relative to Fabrication. I follow threads linearly with my RSS reader. I believe you where talking about the PureMVC framework.


Title: Re: Question about notification handler?
Post by: marks416 on March 29, 2009, 06:17:47
Hi Tek,

respondTo****(note:INotification) is the special way used in Fabrication.

I discuss about Fabracation now.

Thanks

Mark