Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Welcome, Guest. Please login or register.
July 28, 2017, 09:52:26 AM
Home Help Search Login Register
News: Please DM @puremvc on Twitter to gain forum access. Spambots are why we can't have nice things.
Pages: [1]
Print
Author Topic: viewcomponent and mediator code  (Read 2635 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: