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: sendNotificatoin or facade.notifyObservers in Mediator  (Read 5892 times)
TomCornilliac
Courseware Beta
Newbie
***
Posts: 1


View Profile Email
« on: January 17, 2008, 06:18:55 »

I'm not sure what the difference (if any) between using sendNotification and facade.notifyObservers within a Mediator. Anyone? Thanks!
Logged
Joel Hooks
Courseware Beta
Sr. Member
***
Posts: 146


baby steps

 - 46288188  - passport@provinsal.com  - joeltuff
View Profile WWW Email
« Reply #1 on: January 17, 2008, 06:57:31 »

They serve the exact same purpose. sendNotification is a shortcut

as per the API docs:

:
sendNotification () method
public function sendNotification(notificationName:String, body:Object = null, type:String = null):void

Send a INotification.

Convenience method to prevent having to construct new notification instances in our implementation code.

Logged

http://joelhooks.com - my ramblings about developing with actionscript and python using pureMVC and django respectively.
Pages: [1]
Print