(22)
(1)
(5)
(16)
分类: bsd
2012-01-31 19:11:30
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.
in a nutshell, mvc says that there are three kinds of objects: model objects, which hold raw data; view objects, which the user can see and click on; and controller objects, which keep the model and view objects in sync.