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] 4 5 ... 11
31  Announcements and General Discussion / Public Demos, Tools and Applications / PureMVC Employee Admin demo for jQuery on: January 07, 2012, 02:56:27
Hi all, as it has often been requested, I finally made an Employee Admin demo that uses a jQuery and jQuery UI components to show what can be achieved using PureMVC for JavaScript : http://www.tekool.net/blog/2012/01/07/puremvc-employee-admin-demo-for-jquery/

This is a good app skeleton to start with, it includes YUICompressor, a dedicated ant task and a debug HTML file. I hope that it could help any JavaScript developer knowing jQuery a little to start with PureMVC.
32  PureMVC Manifold / Standard Version / Re: Async Macro Command on: December 23, 2011, 11:37:07
Exact I forget this one as I'm used to the JavaScript version which lacks the port of this utility.
33  PureMVC Manifold / Standard Version / Re: Async Macro Command on: December 23, 2011, 03:20:31
A good way of doing this is to use a Proxy which take commands name into parameters and execute them sequentially. It is the responsability of the command to call the proxy the right way to tell it to execute the next command in the list when the result is received from the server.A PureMVC extension to do this automatically would probably be a good idea. So I think that your idea of handling it within a proxy which temporarily stores server VOs is the good way of handling it.
34  PureMVC Manifold / Bug Report / Re: onRemove NEVER called on: July 12, 2011, 03:12:24
But I have  :D

This is right the onRemove method is not called for the proxy : http://trac.puremvc.org/PureMVC_Java/browser/tags/1.0/src/org/puremvc/java/core/Model.java

I don't understand how the tests have passed. I do not have time right now but it needs some attention as http://trac.puremvc.org/PureMVC_Java_UnitTests/browser/tags/UnitTests_1_0/src/org/puremvc/java/core/ModelTestProxy.java is designed to test this.

Sorry not to have seen this during the upgrade I made on the standard port.

35  PureMVC Manifold / Bug Report / Re: onRemove NEVER called on: July 12, 2011, 01:18:29
Cliff, this is something I remember to have fixed in the singlecore version I've made. As I added Unit Tests this is something I can't have omitted.
36  PureMVC Manifold / Bug Report / Re: FlashBuilder 4 - PureMVC + Pipes on: April 28, 2011, 01:44:09
Cliff don't you think it's only a problem of regenerating .swc from sources ? Klahm is probably using a swc found directly on the download section of the website which is for any reason no more compatible with FB SDK4+.

In this case Klahm you probably have to checkout sources in Flex Builder and run a build. That's it.
37  PureMVC Manifold / MultiCore Version / Re: Android: Activity Management in PureMVC on: April 07, 2011, 12:56:08
Mike as said in a previous post my choice was to use multicore because it uses the same paradigm as Android with Activities, one must not know each other.

: mikebritton
How do I know which Activity is changing the page with an Intent?

I investigated a little in this way when working on my demo app and if I remember well discovered some methods that can check if an Activity exists and methods on it to check if it is "displayed". A timer hidden in a thread can check if the Activity is paused meaning it's in background so not displayed.

Be careful when using intent that wait for a result the same Activity is automatically created multiple times without you even know it because Android consider it must not be closed before returning a result.
38  PureMVC Manifold / MultiCore Version / Re: Android: Events on: April 06, 2011, 08:36:10
@puremvc Here it is: https://github.com/tekool/puremvc-android-currency-converter

There is an example of observer/Observable implementation I use in : Activity here and its mediator there
39  PureMVC Manifold / MultiCore Version / Re: Android: Events on: April 06, 2011, 01:49:11
When working on my Currency app I used the standard Java java.util.Observable/java.util.Observer interfaces and made my Mediator implementing Observer. I dispatched a custom Event object. It wasn't a bad experience.
40  PureMVC Manifold / Standard Version / Re: android on: March 31, 2011, 08:52:14
Sorry, I do not have so much time to participate into the discussion.

What makes it difficult with Android is that the system could decide to remove an Activity without the application have any knowledge of it at any moment. In fact an event is fired when possible but if the system memory is near full, to be sure that Activities will not consume still more memory to process this event the system could simply remove the Activity silently.

As the main problem was to be sure not to create garbage collection problem with unwanted references to and from activities I chosen multicore. So when I need to launch an Activity I simply check for its existence and re-create it if needed. To make the things neat anyway I've included this code in each Activity :

:
    /**
     * Called (or not called) when the activity is destroyed by the Android
     * system.
     */
    @Override   
    public void onDestroy()
    {
    super.onDestroy();
   
    ActivityFacade.removeCore( ActivityNames.MyActivityName);   
    }

You can find this here : https://github.com/tekool/puremvc-android-currency-converter/blob/master/src/org/puremvc/java/demos/android/currencyconverter/preferences/PreferencesActivity.java

Using multicore helps in using Intents. I suppose that building a Pipe utility specifically designed for Android over intents mechanism could lead to a neat solution (I think to replace Message with Intents args or something like that). I do not have time for this at the moment but this could be an idea that do not need to modify PureMVC for Android, only this utility.



41  PureMVC Manifold / Standard Version / Re: android on: March 28, 2011, 12:58:56
Hi Mike,

I agree, Android is sufficiently well thought to support a standard MVC architecture and let us hesitate on how much using a micro-architecture is needed. The problem is also that an Activity must not communicate or detain reference of another so it complicate a lot any PureMVC implementation in Android. I do not have time for the moment but I'm sure that something elegant could be made to respect the Android paradigm and implement PureMVC in a manner that at least helps in reusing components or activities.
42  PureMVC Manifold / Bug Report / Re: [UNDER CONSIDERATION] Use of apply instead of call in Observer class on: February 21, 2011, 09:53:24
Let run the test, it should take 10 seconds or more ... I will reduce the number of loops which is adapted to pass on my computer.
43  Announcements and General Discussion / General Discussion / Re: Maps all use Array instead of Object on: February 21, 2011, 09:50:53
You can create and delete it, no problem. I already have started to learn from ProGit since yesterday I told about it. ;)

From what I saw what need more test is the Organization functionality for our needs.

What is quite less cool with Github is what they charge by month for so few users and few repositories. I don't know how this could be managed... probably by creating more than one account for PureMVC ? Not sure how to do, there's probably other community project that found a workflow for this. I'm currently investigate it in.

44  PureMVC Manifold / Bug Report / Re: [SUGGESSTION] Use Array.slice(0) to copy Observers instead of a loop on: February 20, 2011, 03:55:24
To have worked on near each language PureMVC was ported I saw that each developer chosen to use the more appropriate solution for the language on which PureMVC was ported. When it has no consequence on the behavior of PureMVC nor its implementation, I think this is good to benefits from possible optimization provided by a specific language. This one is really important as it adds twice the unwanted debug steps located in notifyObservers methods when working in debug mode.
45  Announcements and General Discussion / General Discussion / Re: Maps all use Array instead of Object on: February 20, 2011, 02:48:29
The plus with Github is that you can use it even using an SVN client (read and write now) if you're more used too. But as we discussed on Twitter, the advantage of Github is not Git, even if a lot of people seems to find a lot of reasons to love it, nothing more convince me to change for Git on my personal projects but Github.

I can help to change license too. I did this batch editing so many times while creating demos or ports for PureMVC that I already know the process. It's not so hard to batch process license headers in file as in most cases developers have simply copied the same headers on each file of the project. A simple batch on each project with a cautious verification file after file in  a text editor immediately show any error.

A short but good Git/Github learning track and tests would be necessary before moving a lot of projects not to create the same errors multiple time. At least a call for some guy who can help on this in realtime (like IM) would be a great plus. I perfectly can imagine to have a deep look into how to manage that a week-end.

The recommended start for Git seems to be : http://progit.org/book/ especially for me as there is French translation of the book which is written by one of the guy under Github. I'll try to read this asap.
Pages: 1 2 [3] 4 5 ... 11