Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
New Mac and iPhone programmers seem to have a set life cycle. The early part of the learning process is getting used to Objective-C and maybe some basic memory management. But that’s just learning how to use your tools. The next step is figuring out how to arrange your classes and get them to talk to each other.
The first question new Cocoa programmers ask me when they get to this stage is: “How do I send data between classes?” There’s no magic sendDataToClass method or anything like that. Instead, you use Model-View-Controller, or, more commonly, MVC. This isn’t a class—it’s a mindset.