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] 3
16  Announcements and General Discussion / Architecture / Re: Real world PureMVC folder structure on: July 27, 2009, 12:48:17
That actually sounds like a good idea.  I wonder what "view/components" followers say about that.

Cliff suggests that this organization occurs inside the components folder like this:

view
   \components
      \controls
      \containers
      \utils
      \...and so on

But I think I am like you JJ and dislike too much hierarchy. But what would be the arguments against moving the view classes out of the components folder? 
 

Best,
Sammi
17  Announcements and General Discussion / Architecture / Real world PureMVC folder structure on: July 20, 2009, 06:20:07
Hi,

I always feel a bit lost on new projects when it comes to folder structure in a PureMVC application.  I really like the suggested structure:

\model
   \vo
\view
   \components
\controller

But that soon gets really messy in larger projects.  I find that my view and components folder get expecially messy.  That is why I always try to come up with a good folder structure within thos folders - and that is where I fail.

Either I get too granular or too general.  Often I end up with inconsistency and bad naming conventions inside the components folder.  I try to suffix 'real' views with View and other classes that the views use not.  But in the end there are so many classes that are not real views that the components folder get messy.  Then I sometimes move those classes outside of the components folder into some other folder but am never sure what folder name I could use that makes sense.

So I was hoping some of the more experienced PureMVC developers could share some of their experience in this area?

How does the folder structure look like in your real world application?  What structure do you use to keep everything clean and logical?

Best,
Sammi
18  PureMVC Manifold / MultiCore Version / Re: VIEW <-> PROXY on: July 20, 2009, 04:11:25
Hi,

First:
I would just make a VO for these properties and have the mediator pass it to the view.  It may sound like a lot of extra work, but it really isn't.  And you get code completion for the properties.

Second:
I would just have a MenuBarMediator that manages both the MenuBarView and it's nested views.  I would actually also not have the links as 'views'.  They could be classes, but I would not think of them as views in PureMVC terms.  That would be too granular for my taste.

Best,
Sammi
19  Announcements and General Discussion / Getting Started / Re: Can view components load images? on: July 12, 2009, 06:20:24
It is perfectly fine to have the views load external images.

Most of the time my views are responsible for loading the images it requires, unless the images are required at startup.  Then my InitialAssetsProxy loads them and the view's mediator passes them to the view.

Someone made a simple BulkLoaderProxy recently and shared it here on the forums and I might use that in upcoming projects.

Best,
Sammi
20  Announcements and General Discussion / Getting Started / Re: my view component needs a mediator on: June 04, 2009, 07:31:25
Hi,

I would create the NavigationMediator in the StageMediator.

I would create the buttons in the viewComponent.  The buttons in the view component dispatch an event on mouse click and the NaviagationMediator listens to them and send  an appropriate notification.

The StageMediator could add the navigation view to stage for an example.

I usually have one ApplicationMediator that adds the main views to the stage and registers mediators for them.  Your StageMediators would do that in your case I believe.

Best,
Sammi
21  Announcements and General Discussion / Getting Started / Re: my view component needs a mediator on: May 26, 2009, 03:23:42
Hi,

just like you created your StageMediator and passed the stage as a view.  In your StageMediator you can register a NavigationMediator and pass the _navigationView to it.

Best,
Sammi
22  Announcements and General Discussion / Getting Started / Re: One mediator, several proxies, is it possible? on: April 17, 2009, 03:10:24
You can as many or as few proxies as you like.  They just send notifications that any mediator can pick up.

So yes, notifications from many proxies can be picked up my one or more mediators.

Best,
Sammi
23  Announcements and General Discussion / General Discussion / Re: Hybrid CDROM on: January 02, 2009, 07:35:47
Ok,

so if the loader swf, which is basically nothing but a Loader, does not have a facade, then it should work?

Then I must be having some other problem. I will look into that.

Best,
Sammi
24  Announcements and General Discussion / General Discussion / Re: Hybrid CDROM on: January 02, 2009, 04:16:43
Hi,

I am using single core. I was afraid that multicore would be required for this and I haven't looked into the multicore version.

I just load the min app with Loader.  The main app has:

:
addEventListener( Event.ADDED_TO_STAGE, startup );
and inside startup I do the usual :

:
_facade = ApplicationFacade.getInstance( );
_facade.startup( this );

and finally in the ApplicationFacade I do:

:
sendNotification( STARTUP, viewComponent );
that should start the whole thing.

Best,
Sammi
25  Announcements and General Discussion / General Discussion / Hybrid CDROM on: January 01, 2009, 08:53:29
Hi,

I am creating a hybrid CD-ROM from a project that was creating with PureMVC - and having some problems.

I have my Application.swf that is a PureMVC application.  Then for the CD-ROM I created a Start.exe and Start.app that loads in Application.swf.

But it seems like it doesn't work.  Maybe I can't load a PureMVC application into a swf and expect it to work?  What happens is that the Application is loaded but no notifications seem to work.

Is that normal?  I think so - but hope not ;)

Best,
Sammi




26  Announcements and General Discussion / General Discussion / Orchid and PureMVC Studio. Where?? on: November 30, 2008, 07:57:59
Hi,

not really PureMVC related but on the Pirate Internet radio thing I heard this thing being mentioned:

Orchid UI framework by Samuel Agesilas

It is supposed to be an open source framework but I could not find anything about it on Google. Can anyone here point me to right direction?

Also.  I could not find the PureMVC Studio mentioned.  Has it not been released yet?

Best,
Sammi
27  Announcements and General Discussion / Architecture / Remoting with AMFPHP / ZENDAMF / WEBORB on: November 21, 2008, 04:00:34
Hi,

I am in the process of adding remoting to my PureMVC application and I would like to hear from someone that has been doing that.  I know how to set things up and they work just fine - but there is this one thing:

In past past projects I have been a fan of XML and E4X for searching and filtering the external data. My proxies often have methods to search and filter. But with remoting I don't think the PHP classes can return XML objects - or can they??

How do you do this?  Do you return ArrayCollections or Arrays and then create your own methods to search/filter the data?

And finally.  Which remoting package do you prefer??  I think I like ZendAMF but they are missing a service browser that is extremely helpful when testing the classes.

Best,
Sammi
28  Announcements and General Discussion / Architecture / Re: Commands calling mediators/proxies in timed sequence on: November 10, 2008, 03:22:31
Thank you for your response.

I always to this ;)  I tend to call the mediators the "view" because they belong to the view.  But people obviously often misunderstand and think I am talking about the view components.

But I still think you are right.  Using notifications are cleaner even if they mean more code.

Best,
Sammi
29  Announcements and General Discussion / Architecture / Commands calling mediators/proxies in timed sequence on: October 30, 2008, 09:34:02
Hi,

I have a command that runs when I want my application to return to idle mode ( IdleTimeoutCommand ). This command tells the views to transition to their idle state. 

I want a simple way of controlling - and timing - how the view go to their idle state.  For an example I want the menu to go first, then the background graphics, and so on.

Am I allowed to have the command call the view for an example with TweenLite.delayedCall()?

So call view A after 0.5 seconds, B after 0.8 seconds and so on?

Could it happen that the command is removed from memory before it gets to call the view?

Confusing???

Best,
Sammi
30  Announcements and General Discussion / Architecture / Re: Tips for helpful tools on: October 23, 2008, 02:00:13
Thanks Joel,

MindManager is a great tool that is used a lot in my company. I have tried to use it for planing applications but didn't quite find an effective way.  Would you be willing to share some guidelines on what you find effective?  Or send me a map that I could open and study?  I know it is a lot to ask so feel free to ignore my request ;)

Best,
Sammi
Pages: 1 [2] 3