|
|
Show Posts
|
Pages: [1]
|
1
|
Announcements and General Discussion / General Discussion / Declaration of Notification Names ?
|
on: August 19, 2008, 10:15:07
|
Hi, I want to know where one should declare notification names. It shud be declared in Proxies or in ApplicationFacade ? I want to make modular applications so wanted to know what is the best way of maintaining notifications. Declaring notification names in ApplicationFacade will really lengthen up the file. I was thinking to declare in a separate file called as ApplicationConstants but is there any other method of keeping the notification names..whether in proxies or applicationfacade ?? Your insights will be really helpful.
|
|
|
2
|
Announcements and General Discussion / Getting Started / how to use sendNotification inside Model
|
on: May 12, 2008, 07:05:06
|
Hi, This is the first time I am using pureMVC framework.I am creating an small application using Flex. There are bunch of question I want to ask.
1) If there is a class which acts a Model. This class contains methods as add(),remove(),update() etc..When any of these methods are called I want to dispatch or use sendNotification() method. So what class should I extend. Notifier or proxy because this class will only manipulate other model class.And also which interafaces I need to implement
2) How can I manipulate one of the model class data from another model class..If a model class is sending any notification either by extending proxy or notifier(refer question 1) how do I use handleNotification() method inside Model.This is quite confusing for me.
From the diagram I understand that proxies cant communicate with each other.They can interact with each other via Commands.Can you help me out how do I implement it.Please help.Please provide me the solution with the help of a small snippet.
3) Is it necessary that a class extending a Proxy should implement load() function. I want to use sendNotification function and also handleNotification in 2 model classes.Lets say a ConfigProxy is loaded and DataProxy are 2 model classes. ConfigProxy sends notification sendNotification(Add_Element) and DataProxy should listen for this notification. How can I implement that.At the same time DataProxy should be handling the notification sent using handleNotifcation() method...Am I doing anything wrong here..Please let me know.
Thanks
|
|
|
|
|