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
|
Pages: 1 2 [3]
|
36
|
Announcements and General Discussion / Public Demos, Tools and Applications / Re: Login Sample using Flex, WebORB and PureMVC
|
on: January 05, 2008, 08:11:29
|
Hi Sectore,
I am currently in the process of porting this demo over to silverlight, along with the C# PureMVC port i'm working on. But i'm having a problem which i'm not sure weather it is the demo, or my port.
My question is this.
From what i can tell, the ApplicationMediator is registered with the Facade via the ViewPrepCommand which is triggered by the application startup code telling the facade to notify observers of an APP_STARTUP notification.
In the ApplicationMediators listNotificationInterests method, it says that it is interested in the APP_STARTUP, which i beleive it uses to setup its sub views.
Now the thing that i am having dificuilty with is that the ApplicationMediator is registered by the APP_STARTUP command, and is interested in the APP_STARTUP but my ApplicationMediator doesn't currently receive notification (i'm guessing because it's not in the list when the APP_STATUP notification was broadcast)
So should the ApplicationMediator be subscribing to the APP_STARTUP notification? or is there something wrong with my port that i can't add mediators during the handling of a notification which should then receive the notification themselves?
I hope this makes sence.
Many thanks
Matt
|
|
|
39
|
PureMVC Manifold / Standard Version / Array, ArrayList, IList<> and Hashtable, IDictionary<>
|
on: December 02, 2007, 10:06:10
|
Going through the AS3 implementation, Cliff has made a concious decision no to use some datatypes so as not to tie down the implementation.
When it comes to silverlight and .NET though, the core datatypes are not as flexible as their AS3 counterparts (ie Arrays require a size and can't be indexed by name)
So to what degree should we implement the .NET datatype? We could use relitivley low level ones such as ArrayList and Hastable? or go the whole hog and use Generic collections which gives type safety?
Any thoughts?
Matt
|
|
|
40
|
PureMVC Manifold / Standard Version / Observer Pattern
|
on: December 02, 2007, 09:47:04
|
Well i've made a start on porting this over to Silverlight / C# and have narrowed down the problems.
One of these issues is the implementation of the Observer pattern.
Could / should this be done using delegates? or should we have use the Observer class and use reflection (which delegates seems to do anyway) to keep it generic?
What do you think?
Matt
|
|
|
|
|
|