
| 畅销cocoa入门图书,再次更新后涵盖了最新的mac编程技术,高级mac os x开发 者们再次联手强烈推荐。 |
| Aaron Hillegas,曾就职于Next和Apple,现在在Big Nerd Ranch主讲Cocoa编程。第一套OpenStep(Cocoa的前身)教程即出自其手。本书基于Aaron在Big Nerd Ranch的教学内容,并融入了他在OpenStep和Cocoa方面15年的工作经验。 |
| 致谢 第1章 什么是cocoa 1.1 历史简介 1.2 开发工具 1.3 语言 1.4 对象、类、方法和消息 1.5 框架 1.6 怎样阅读这本书 1.7 常见错误 1.8 怎样学习 第2章 起步 2.1 xcode 新建一个项目 main函数 2.2 interface builder library窗口 空白窗口 布局界面 指示窗口 创建一个类 创建一个对象 建立连接 2.3 回到xcode objective.c中的类型和常量 查看头文件 编辑定义文件 编译运行 awakefromni 2.4 文档 2.5 你做了什么 第3章 objective-c语言 3.1 创建、使用对象 3.2 使用已有的类 给nil发送消息 nsobject、nsarray、nsmutablearray和nsstring 继承和组合 3.3 建自己的类 创建lotteryentry类 修改lottery.m 实现description方法 编写initializers(初始化器) 带参数的initializer 3.4 调试器 3.5 补充知识:消息机制工作原理是什么 3.6 挑战 第4章 内存管理 4.1 开关垃圾收集器 4.2 使用garbage collection 4.3 使用retain计数 实现dealloc 创建自动释放对象 accessor方法 4.4 你完成了什么 第5章 target/action 5.1 一些常用的nscontrol子类 nsbutton nsslider nstextfield 5.2 开始speakline例子 5.3 nib文件的布局 使用interface builder建立连接 nswindow的initialfirstresponder outlet 5.4 实现appcontroller类 5.5 补充知识:通过代码来设置target 5.6 挑战 5.7 调试建议 第6章 helper对象 6.1 委托 6.2 nstableview和它的datasource 6.3 布局用户界面 6.4 创建连接 6.5 修改appcontr011er.m 实现委托时的常见错误 对象委托 6.6 补充知识:委托是如何工作的 6.7 挑战:创建一个委托 6.8 挑战:创建一个数据源 第7章 key—value coding;key—value observing 7.1 key—value coding 7.2 绑定 7.3 key-value observing 7.4 让keys可被观察 7.5 properties和它们的attributes @property和@synthesize 一个property的attributes 7.6 补充知识:key paths 7.7 补充知识:key—value observing 第8章 nsarraycontroller 8.1 开始写raiseman应用 在xcode中 在interface builder中 8.2 key-value coding和nil 8.3 添加排序 8.4 补充知识:不使用nsarraycontroller排序 …… 第9章 nsundomanager 第10章 archiving 第11章 core data基本原理 第12章 nib文件和nswindowcontroller 第13章 user default 第14章 使用notifications 第15章 使用alert panels 第16章 本地化 第17章 自定义视图 第18章 image和鼠标事件 第19章 键盘事件 第20章 绘制带属性的文本 第21章 粘贴板和nil-targeted actions 第22章 categories 第23章 拖放 第24章 nstimer 第25章 工作表 第26章 创建nsformatter 第27章 打印 第28章 web service 第29章 视图切换 第30章 core data relationships 第31章 垃圾收集 第32章 core animation 第33章 一个简单的cocoa/open gl应用程序 第34章 nstask 第35章 结束 索引 |
商品评论(0条)