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
1  PureMVC Manifold / Standard Version / Re: Linking UI element and Mediator on: November 24, 2010, 09:59:45
So far I needed to do this for my viewcomponents:::

:


-(void)onRegister {
LoginViewController *tVC = [self viewComponent];
tVC.delegate = self;
}


as I had some issues, but maybe after having fixed those, I can go back to the sample code.
2  PureMVC Manifold / Standard Version / Re: viewcomponent and mediator code on: November 24, 2010, 09:58:20
solved, own issue as ususal... I didnt have the viewcomponent initiated at the time...
3  PureMVC Manifold / Standard Version / Re: Using the obj-c port with X-Code 3.23 on: November 24, 2010, 03:25:41
I also just added the files to my class list, works fine there...
4  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.
5  PureMVC Manifold / Standard Version / Re: Unusable on: November 24, 2010, 03:20:23
dont know what the guys is talking about, sop far all the facade, command and proxy part is working fine on my side. There is some confusion on the viewcomponent/mediator connection, but thats all I found so far, everything else is working fine. I been using puremvc in AS3 before though....
6  PureMVC Manifold / Standard Version / Re: Objective C port: usable on OSX? on: November 12, 2010, 09:46:11
I thought as much, as the PureMVC AS3 is not very AS3 specific, so it seems with this, I will have a try on that in a free minute....
7  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
8  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)
9  Announcements and General Discussion / Architecture / Re: multi source data on: December 09, 2009, 06:38:49
I have that, its called:  hasContent

which both tells me if I can search it or if I can save the XML back as an updated file.
10  Announcements and General Discussion / Architecture / Re: pick up circle on: December 09, 2009, 06:37:15
ah so my intuition was right.

thank god, sometimes I am feeling I am reverse engineering too much.
11  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.
12  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?
13  Announcements and General Discussion / Architecture / Re: XML content docking proxy solution on: December 01, 2009, 02:44:44
wow,

thanks for that reply.

I will have a thorough look at it, but this looks fairly feasible.

Some of the docked xml are a bit more complex, but this solution should bring me a good step ahead.

thanks a  lot.
14  Announcements and General Discussion / Architecture / Re: XML content docking proxy solution on: November 30, 2009, 02:53:11
yes cliff, thats exactly what I need, or basically , How i have it for now, yet I would like to maintain the IDs for later saving of the xmls (where the IDs shoudl be used again, not the values)

a probably simple way would be to have a switch function that switches IDs to values and back, but then again there might be two different IDs using the same value. (as we will have external users and internal default palettes, this is a possible scenario)

So the aim is to build a getter setter system that can deliver the right values without changing the ID on the VO's data source.

Donno if that might be over-complicating things.
Maybe I should just go with the switch solution till I run into problems.

15  Announcements and General Discussion / Architecture / Re: XML content docking proxy solution on: November 28, 2009, 07:53:19
certainly:
I am using VOs to describe textformats, etc. by xml. At some point I then only have to use the data of the VO to populate the textformat's properties.
In the case of color, I use a either a String Id (e.g. 'darkGrey') to indicate the color value. The color value is stored on another object (on a VO) withe the Id 'darkGrey. This let's me store some kind of color palette for my projects.

Now when I populate the textformat, then I need to use the numeric value. So how best and when would I get the color value through the VO that holds the actual value. How do I merge the two VOs (textformat description and color description) to end up with a complete textformat description and with leaving the original VOs intact as much as possible.
Pages: [1] 2