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

Pages: [1]
Print
Author Topic: viewcomponent and mediator code  (Read 6969 times)
uncleunvoid
Full Member
***
Posts: 27


View Profile Email
« 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.
Logged
uncleunvoid
Full Member
***
Posts: 27


View Profile Email
« Reply #1 on: November 24, 2010, 09:58:20 »

solved, own issue as ususal... I didnt have the viewcomponent initiated at the time...
Logged
Pages: [1]
Print