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  Announcements and General Discussion / General Discussion / code gremlin? listNotificationinterests accepts same note more than once. on: February 20, 2011, 08:46:17
Just spent 2 hours chasing down a code gremlin.

I had a mediator that had a long list of notifications it needed to respond to.

Somehow a couple of notifications were entered twice in the list notification interests array.

This resulted in handle notification being called twice for the notes that were listed twice.

Is this by design?

Seems to me that there should be some check in the register mediator process that makes sure a mediator only listens to a note once since all notes are processed by the same handleNotification method.

Is there actually a use case for having the handleNotification method fired twice in the same mediator for the same note?

(oh btw this was the AS3 multi-core version).
2  Announcements and General Discussion / General Discussion / Re: Modularization and dependency injection / runtime configuration on: February 19, 2011, 06:19:48
does anyonehave any examples of how to do this with the deployment configuration utility?

It would be great to be able to leverage existing & tested utilities rather than rolling my own.
3  Announcements and General Discussion / General Discussion / Re: State names question on: February 02, 2011, 12:52:19
Thanks Cliff,

In my head it was - user starts-out LOGGED_OUT - and when they succesfully authenticate then they are IDLING (one of several states while they are actually using the application) - when they logout - they are once again LOGGED_OUT  this is where the participle/gerund confusion was arising - I got the dynamic states for while the app wa running - but then could not think of a dynamic state for the non-authenticated state.
4  Announcements and General Discussion / General Discussion / Modularization and dependency injection / runtime configuration on: February 01, 2011, 05:07:59
I am trying to design an app that will connect to various social networks - and that may run in either flash player or in AIR.

To that end - I need some help in properly designing the module structure so that the proper service proxies can be configured at runtime. For Example - the Actionscript Facebook graph API has separate singeltons for the flashplayer and for AIR - I have programmed my code to an interface - The rest of the code expects the SocialNetwrokProxy to implement the SocialNetwork  interface.  But how do I make it so that I can  configure which proxy to use at runtime? 

Perhaps an xml file that is read at runtime to choose the correct proxy depending on which social network the user is connecting through?

Any help on modularization and runtime configuration would be greatly appreciated.
5  Announcements and General Discussion / General Discussion / State names question on: February 01, 2011, 05:02:45
In the finite sate machine tutorials/documentation it is suggested that gerunds are the best naming conventions for states and verbs (past tense) for transitions.

I am confused on how to appropriately name states such as when an application just starts up.  My application involves connecting to a social network to authenticate and get info about the social graph etc. 

so when we start up - the user is "Not Logged in"  or LOGGED_OUT - and when they authenticate with the social network they will become LOGGED_IN.

Is there a better way to name these states to conform to the gerund convention?
Pages: [1]