Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Welcome, Guest. Please login or register.
May 24, 2017, 08:05:56 PM
Home Help Search Login Register
News: ATTENTION: Spambots must die! Humans must visit http://contact.futurescale.com to request forum access.
Pages: [1]
Print
Author Topic: viewcomponent and mediator code  (Read 2526 times)
uncleunvoid
Full Member
***
Posts: 27


View Profile Email
« on: November 24, 2010, 03:24:40 AM »

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:



Code:

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



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

Code:

-(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 AM »

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