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: can Commands implement IResponder Interface in PureMVC?  (Read 4104 times)
yeremy
Jr. Member
**
Posts: 11


View Profile Email
« on: July 25, 2008, 03:03:46 »

i'm begining to learn pureMVC, before it i was doing tests with Cairngorm...

...my question is : is a good practice use a Delegate class to manage a remote object?

i mean...a command implements IResponder Interface and in the execute method the command references to the delegate class sending as a parameter itself.

i just wanna be sure about it.

it would be nice if somebody would give me an answer!  ;D

thanks! :D
« Last Edit: July 25, 2008, 05:42:09 by yeremy » Logged
yeremy
Jr. Member
**
Posts: 11


View Profile Email
« Reply #1 on: July 25, 2008, 08:36:17 »

i found the answer :

http://www.dehats.com/drupal/?q=node/26

thanks! :D
« Last Edit: July 25, 2008, 11:06:15 by yeremy » Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #2 on: July 26, 2008, 04:42:38 »

Please note that article you site is not in sync with the code in the repository. The Bookstore app in the repository has Proxies NOT Commands talking to the Delegates as the Best Practices guide suggests. I have a FAQ entry made for this and that goes into this more deeply than I can on my phone. I will publish the FAQs soon, but for the moment please examine the Bookstore code in the repository for the recommended approach.

-=Cliff> 
Logged
yeremy
Jr. Member
**
Posts: 11


View Profile Email
« Reply #3 on: July 26, 2008, 07:39:42 »

Thanks for your help!  :D
Logged
Pages: [1]
Print