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 / Standard Version / viewcomponent and mediator code on: November 24, 2010, 03:24:40
I also haven't gotten the viewcomponent> mediator part gotten to work.

There is some confusion on my side between the forum entry (UIcomp and mediator connection (or so))

The code noted here is:



:

-(void)onRegister {
self.viewComponent.delegate = self;
}



But the code I downloaded for the employee sample looks like this:

:

-(void)onRegister {
[self.viewComponent setDelegate:self];
}


So far none of these versions works for me , even though I have set up a delegate and protocol for it in my viewcomponent

And from my understanding both versions should work given I have a setdelegate or a delegate method/property in my viewcomponent....


Please clarify what to go with.
2  PureMVC Manifold / Standard Version / improvement? extern NSString * const instead of define on: November 12, 2010, 09:19:31
I have been coming across quiet a few articles mentioning that the use of

:

// Prefs.h
extern NSString * const PREFS_MY_CONSTANT;

// Prefs.m
NSString * const PREFS_MY_CONSTANT = @"prefs_my_constant";


is quicker and more usable than using define to declare command static names...

thoughts?

http://stackoverflow.com/questions/538996/constants-in-objective-c
3  PureMVC Manifold / Standard Version / Objective C port: usable on OSX? on: November 12, 2010, 02:43:35
I was wondering how easy it would be to create an actual mac application with this PureMVC port?

Instead of running on iOS to run on snow leopard...

Doable? That would be awesome(and some)
4  Announcements and General Discussion / Architecture / pick up circle on: December 08, 2009, 07:29:03
There is a certain task that keeps on coming back to me and I am wondering if I am trying to solve this in the best way.

- I need a complex piece of data in order to start a process. The data's parts are found in various places(proxies) in my app
> I go around proxies and add he data I need to a big, complex container.
> once I have everything, I send it all to my next process and there we go.


It seems this ends up sending quite a bit of data to the next process. Is that the way to do this sort of thing?

I am basically trying to solve the issue I would have normally solved in AS2 with closely coupled objects and returns. Lines of data retrieval are now parts in an event chain.
5  Announcements and General Discussion / Architecture / multi source data on: December 08, 2009, 07:22:06
I have now developed a setup where my content is in a number of proxies, which represent a number of different data source files.

Now I need to retrieve the data from the proxies. The search should only retrieve one piece of data.

Default and new versions of the data are present(e.g. a certain layout). I need to look in each proxy for the data as I dont know where the data might be.

I need the data / responses from the  search all coming back to one central point.

How do I do this?

At the moment my solution sits in a command that retrieves all proxies, if it find one fills a container, and whatever is in the container at the end of teh search gets moved to the next step of the process.

Does that sound feasible/efficient?
6  Announcements and General Discussion / Architecture / XML content docking proxy solution on: November 27, 2009, 09:39:12
here is what I started implementing:

a collection of 'docked' xml files that describe my content (pages.xml, layouts.xml, colors.xml, etc.)

i want to put them in separate xmlfilecontent proxies and then have search functions that retrieve the data when necessary.

problem is: some objects described in the xml have IDs instead of values. e.g. an element in the layout had the color 0xff0000. in the xml of layout.xml there is a subnode with  <color>myred</color>. The actual color value is in the color.xml as a color node.

how do I stitch that data together, so that I can use a complete layout object in flash without coupling those proxies too much?
7  Announcements and General Discussion / Getting Started / renaming of reusing mediators, how??? on: October 22, 2009, 11:51:27
here is my conundrum:

I set up a basic mediator, one that basically just displays some clips. Lets call him/her ClipMediator. Now I want to re-use this one in my interface displaying different clips/content, which is fine on initialisation, as I just ahdn over different content.

Yet if anything changes due to user interaction, network process, etc. how can I retrieve one particular mediator and exchange the content?
Mediators are retrieved by NAME and the names of all my ClipMediators are 'ClipMediator' (i chose the same NAME as the class name)

how do I rename the NAME property of the mediator ?

of do I have to solve this in another way?
I cant go and produce 100 classes with unique names you know.(well i could but how about reusable code you know...)

anyone?
8  Announcements and General Discussion / General Discussion / Philosophy: mediator storing display layers and creating mediators there on: October 20, 2009, 06:44:54
Hello,
this is my first post here and I am fresh and ready to burn some rubber here (oeh).

I am re-writing my MVC framework from AS2 to 3 and am using puremvc as a base for it. Here is my first question towards the process:

I built a mediator that houses all main display containers for all application view elements. E.g. interfaceContainer for all the interface, messageContainer to stay on top of teh interface, displaying messages, etc.

a command is creating new mediators to put view elements into those main containers. My plan is to retrieve the container mediator and create my new mediator by giving him/her the container reference from my container mediator.

Does that sound like a sensible solution, or would I rather have the container mediator send a notification to a command, then creating the new view element, like a collection run of a notification to pick p all elements for the new mediator on the way?
Pages: [1]