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: [ FIXED ] IFacade has not notifyObservers() method  (Read 12809 times)
whitered
Newbie
*
Posts: 1


View Profile Email
« on: March 10, 2008, 06:58:50 »

Porting my project from PureMVC 1.7.1 to PureMVC 2.0.1, i cannot leave code like that in my mediator:
:
facade.notifyObservers(new MyCustomNotification())Instead of this, i must use casting to Facade type:
:
Facade(facade).notifyObservers(new MyCustomNotification())
« Last Edit: March 17, 2008, 06:33:37 by puremvc » Logged
DEfusion
Courseware Beta
Jr. Member
***
Posts: 16


View Profile Email
« Reply #1 on: March 10, 2008, 12:44:24 »

I had the same issue here, thanks for the solution, but luckily the only one in an otherwise flawless upgrade.
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #2 on: March 10, 2008, 01:23:54 »

It was removed from the interface when sendNotification was added, as an attempt to simplify the overall process of sending notifications.

For those who wish to create and send custom Notification classes though, this is a good workaround. We'll get notifyObservers back into the IFacade interface for 2.0.2.

-=Cliff>
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #3 on: March 17, 2008, 06:28:51 »

This is fixed in 2.0.3.

-=Cliff>
« Last Edit: March 17, 2008, 06:33:52 by puremvc » Logged
Pages: [1]
Print