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]
1  PureMVC Manifold / MultiCore Version / Some thoughts about puremvc and view cluttering on: December 09, 2010, 01:02:13
Hi Cliff,

           Currently we are using command to register mediators, which typically requires view as notification body. But generally passing view as notification body is not preferable (correct me if I am wrong). So is it okay to pass view as notification body in case of any mediator registration (for e.g. startupcommand) ? or any other better by which we can separate out puremvc from view so view can be reusable without depending on any specific framework.

Thanks,

Ankur Shah
2  PureMVC Manifold / MultiCore Version / Re: In proxy should I remove listeners explicitly ? on: April 08, 2010, 06:07:21
Thanks cliff for quick help.
3  PureMVC Manifold / MultiCore Version / In proxy should I remove listeners explicitly ? on: April 08, 2010, 12:01:28
Hi All,

              Currently I am working on flex application where I am using multicore variant of puremvc. My question is in my proxy I am making remote call and attaching some (RESULT and FAULT) event listener. So in my event handler code should I remove listeners explicitly for making remoteObject class eligible for garbage collecton ?
:
public function getTableGridData():void
{
var hostController:RemoteObject=this.hostController("ABC");
hostController.addEventListener(ResultEvent.RESULT, handleResult);
hostController.addEventListener(FaultEvent.FAULT, handleFault);
hostController.getTableData();
}

private function handleResult(event:ResultEvent):void
{
ApplicationFacade.getInstance(key).sendNotification("abc", event.result);
}

So here hostController holds strong reference of both the listeners. So after resultEvent does hostController is eligible for garbage collection or I have to mention weak reference for listeners for making hostController eligible for garbage collectioin ?
Pages: [1]