Sunday, November 29, 2009

Add Model reference to View

In Model View Controller in the context of Cocoa, when View(PolygonView) needs a reference to Model(PolygonShape):
Step 1: declare an instance variable of PolygonShape in PolygonView



Step 2 Link the Outlet PolygonShape to Class PolygonShape