Chinaunix首页 | 论坛 | 博客
  • 博客访问: 45569
  • 博文数量: 22
  • 博客积分: 536
  • 博客等级: 中士
  • 技术积分: 205
  • 用 户 组: 普通用户
  • 注册时间: 2011-04-11 00:59
文章分类

全部博文(22)

文章存档

2013年(1)

2012年(5)

2011年(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.

阅读(1187) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~