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

Show Posts

* | |

  Show Posts
Pages: [1] 2
1  Announcements and General Discussion / General Discussion / Re: Spanish best practices document? on: November 12, 2009, 04:03:28

The translate is almost done i am in 90%. Sorry for de delay i had a lot of job..but i think the next week i can finish the translation.

Cheers!
2  Announcements and General Discussion / General Discussion / Re: Spanish best practices document? on: October 19, 2009, 07:27:59
Hi Everybody!!!

Ok I have been working on the translation of the document and i already have 50% of the document. Hope in the next weeks i can get the 100%. I also plan to show the document to a professional copywritter who is a friend.. for the maximum of quality...

Cheers
3  Announcements and General Discussion / General Discussion / Re: Presenting at Adobe MAX 09 on PureMVC on: September 29, 2009, 09:33:11
So Good luck my friend!!! PureMVC go go go !!! :D
4  Announcements and General Discussion / Getting Started / Re: Organizing Components with sub components on: September 29, 2009, 06:44:47
This explanation its really nice, very cleaner i am totally agree with you Cliff. By the way i put a link here to structure pureMVC Multicore Folder Structure suggested by Cliff

http://forums.puremvc.org/index.php?topic=1308.msg6048#msg6048

Cheers

5  Announcements and General Discussion / General Discussion / Re: controller and viewcomponent on: September 25, 2009, 12:23:03
Hi...

I think the best way and recommended is to do with notifications. Since the mediator and the command can listen and send notifications, the mediator can properly handle the notification. The command doesnt have to know about the viewcomponent. This job has to be done for the mediator.

Cheers
6  Announcements and General Discussion / Getting Started / Re: Is it ok for a mediator to make calls like this? on: September 24, 2009, 04:11:22
I think the best way to do it to put the call in a Command. As i said before its much cleaner and a best practice so in my own opinion....

 You could do something like this:

:
override public function handleNotification(notification:INotification):void
        {
            var name:String = notification.getName();
            var body:Object = notification.getBody();

            switch ( name )
            {
                case BrowserProxy.DATA_READY:
                     sendNotification(ApplicationFacade.SETTINGS_DATA_GET);
                break;
     
            }
        }



Now in somewhere else you have to register your command , may be in the ApplicationFacade..now

...your Command..

:

override public function execute(notification:Inotification):void{

      var setingsProxy : SettingsProxy = facade.retrieveProxy ( SettingsProxy.NAME ) as SettingsProxy ;
               setingsProxy.settingsDataGet();
       }       

}




and the last thing send another notification of the proper proxy for data retrieved.

Hope it helps...

Cheers
7  Announcements and General Discussion / General Discussion / Re: Spanish best practices document? on: September 22, 2009, 08:48:19
Ok Cliff..thanks... hands on!

Greetings!
8  Announcements and General Discussion / General Discussion / Re: Presenting at Adobe MAX 09 on PureMVC on: September 21, 2009, 04:50:40
May be i am late on this post but I will suggest to take it on in your presentation...in a very briefly way. Also sometimes its funny to present in a very funny way. The brain works better. Understands better.

Why PureMVC?
Where to use PureMVC?
Flavors of PureMVC.
Benefits.

And then

The sexy ApplicationFacade.
The best friends are Views and Mediators. Responsabilities.
Events are not Notifications. Notifications are not Events.
Mom look with No..Commands. This is not true.I like Commands.
Ladies and Gentleman, Proxy the wizard :P

Hope it helps..
CHeers and good luck



9  Announcements and General Discussion / General Discussion / Re: Spanish best practices document? on: September 21, 2009, 04:35:34
Hi cliff!

I tryed to contact you directly to you but without success. I sent you an email for try to work on this. I am gonna try again. If not pls let me know here and i will start to work on the document. Cheers
10  Announcements and General Discussion / General Discussion / Spanish best practices document? on: September 10, 2009, 08:12:35
Hi everyone!

I want to contribute a little bit more with this wonderful framework. I learned  and get fun with puremvc and i think i am going to learn a lot more. Here in the forums i received a lot of help from all of you and i want to put my hands on translating the best practices document to spanish. How ever i can put a little bit of my time (sometimes i dont have enough time) for get this done.

Let me know what do you think.

Cheers

Israel Gaytán
México
11  Announcements and General Discussion / General Discussion / Re: Mediator to View relationships and Webservice method to commands on: September 10, 2009, 08:02:02
Question 1:
is it best practice to have a 1:1 relationship btwn a mediator and a view?

A : Also remember that the mediator is the "best friend" of the view. So it definetively knows him. The mediator listens for all the events and custom events dispatched from your view to take proper actions.

question 2:
if i have a webservice with 3 methods, I should also have 3 Command classes?  i.e. webmethods to Commands are also 1:1?

Some guys go directly from the mediator to the proxy and consume all the methods exposed by the proxy. Then the proxy send notifications and the interested mediators take proper action to handle that notifications. I dont recomend that, i prefer put in commands for encapsulate business logic.
12  Announcements and General Discussion / Architecture / Re: How to register mediator on run with tree navigation on: July 29, 2009, 05:38:00
And dont forget in the Custom Event to put in the constructor:

super(evt,true,true)

for bubbling.

Cheers
13  Announcements and General Discussion / General Discussion / Re: Is it possible manage states without the statemachine utility? on: July 01, 2009, 01:11:06
I solved the the problem myself.

The answer is YES.

The problem was in the mediator. If i have no interests in the listNotificationInterests i was getting an error so problem solved.

Thanks anyway! :D
14  Announcements and General Discussion / General Discussion / Is it possible manage states without the statemachine utility? on: July 01, 2009, 12:14:22
Hi again all! :D

I have a couple of questions to the puremvc community and all the stuff its about states.

Question 1.

¿Is it possible manage states without the statemachine utility?

I mean i have some states in my applications,like login, ApplicationLogged and so forth. When i get logged in i present some components to the user like an application bar, and a tree. In the center of the stage i will load the proper module or  view component when the user clicks the tree. And at this point my confussion begins.  I will try to be clear as possible. When i get in the state "ApplicationLogged" i fire up and event creationComplete to register the mediator with the component (like in the slacker sample).It was working fine until i put states in the Application. Unfortunetely i didnt succeed. It says in the constructor of the mediator that this component its equal to null. Do i really need to use the state machine utility?

Thanks in advance again

Isra




15  Announcements and General Discussion / Getting Started / Re: PureMVC actors and their responsibilities on: May 23, 2009, 11:07:02
That's nice, it would be really nice put another rectangle under the model view and controller, and explain a little bit the notifications. :D

Nicely done:D
Pages: [1] 2