I've been wracking my brains over this and cannot figure it out for the life of me. The problem came up in the Stanford CS193P class, when the view that draws the polygon (HelloPoly app) needed to have access to the polygon info. I can't figure out how to share info between the model, view, and controller.
Grab this example:
http://www.deardriver.com/InfoShare.zip
Build and run it. Then examine the code. Note how the view needs to know about this "Bob" Person instance, and even though the view's Person outlet is linked up in IB properly, it doesn't know about Bob. It knows OF the Person class, but not that specific data.
How does one go about handling this kind of thing properly?
Grab this example:
http://www.deardriver.com/InfoShare.zip
Build and run it. Then examine the code. Note how the view needs to know about this "Bob" Person instance, and even though the view's Person outlet is linked up in IB properly, it doesn't know about Bob. It knows OF the Person class, but not that specific data.
How does one go about handling this kind of thing properly?