Hi,
I set up a project using MVC (to be more specific this is Hello Poly part 2 from Stanford)
and I'm having problems referencing object.
So I have Model which is PolygonShape class, Controller - controller, and View - PolygonView.
I made outlets in Controller :
IBOutlet PolygonShape *myShape;
IBOutlet PolygonView *myView;
and in implementation in awakeFromNib I initialize myShape
myShape = [[PolygonShape alloc] initWithNumberOfSides:x minimumNumberOfSides:3 maximumNumberOfSides:12];
and then I want in View somehow know about
myShape.numberOfSides
Inside interface of PolygonView i have
IBOutlet PolygonShape *myShape;
and
@property (retain) PolygonShape *myShape;
but what happens is actually myShape in PolygonView is not the same object, even though I think I have proper connections set up in Interface Builder
Following MVC directions I can't make model to comunicate directly with the view, so how can I access myShape from PolygonView ??