Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

CaptSaltyJack

macrumors 6502
Original poster
Jun 28, 2007
351
1
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?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.