原作名: Programming in Objective-C 2.0 (2nd Edition)
作者: Stephen G. Kochan
译者: 张波 / 黄湘琴
出版社: 机械工业出版社
出版年: 2009年9月
页数: 460
定价: 66.00
装帧: 平装
ISBN: 9787111276869
作者: Stephen G. Kochan
译者: 张波 / 黄湘琴
出版社: 机械工业出版社
出版年: 2009年9月
页数: 460
定价: 66.00
装帧: 平装
ISBN: 9787111276869
内容简介 · · · · · ·
本书是Objective-C领域的经典著作,对Objective-C进行了系统而全面的阐述,权威性毋庸置疑。全书共分为四大部分:第一部分全面讲解了Objective-C语言的基础知识,包括类、对象、方法、数据类型、表达式、程序结构、继承、多态、动态类型和动态绑定、函数、数组、结构和指针等;第二部分详细阐述了Foundation框架,涵盖数字、字符串、集合、文件操作、内存管理、对象复制和归档等重要内容;第三部分简要介绍了Cocoa和iPhone SDK;第四部分是附录,主要列出了Objective-C的快速参考。
本书结构合理、内容翔实,简单易学,既适合程序设计初学者和所有程序员阅读,也可作为程序设计语言课题的入门教材。
本书结构合理、内容翔实,简单易学,既适合程序设计初学者和所有程序员阅读,也可作为程序设计语言课题的入门教材。
作者简介 · · · · · ·
科施恩,是多本畅销书的作者或合著者,其中有关于C语言的,包括《Programming in C》(Sams,2004)、《Programming in ANSI C》(Sams,1994)和《Topics in C Programming》(Wiley,1991),也有关于UNIX的,包括《Exploring the Unix System》(Sams,1992)和《UNIX Shell Programming》(Sams,2003)。从1984年Mac最初引入时,他就已经在Macintosh计算机上进行程序设计了,他编写的《Programming C for the Mac》是Apple Press Library的一部分。
豆瓣成员常用的标签(共31个) · · · · · ·
喜欢读"Objective-C 2.0程序设计"的人也喜欢 · · · · · ·
按有用程度 按页码先后 最新笔记
-
XCode4控制台
所有的书上,都是讲XCode3. 网上所有的视频,都是讲XCode4怎么建立一个GUI…… 学习Object-c语法还是控制台把….. File ---> New Project ---> Command Line Tools ---> Type(Foundation) (更多)所有的书上,都是讲XCode3.网上所有的视频,都是讲XCode4怎么建立一个GUI……学习Object-c语法还是控制台把…..File ---> New Project ---> Command Line Tools ---> Type(Foundation) (收起)2011-12-14 15:50:05 3回应
-
面向对象
/代码内容已省略/ (更多)// // main.m // Demo2 // // Created by Xin Huang on 11-12-13. // Copyright (c) 2011年 douban. All rights reserved. // #import <Foundation/Foundation.h> #import "XYPoint.h" #import "Rectangle.h" int main (int argc, constchar * argv[]) { @autoreleasepool { Rectangle* rec = [Rectanglenew]; [rec set_width:20 andSetHeight:10]; NSLog(@"area:%i",[rec area]); // insert code here... NSLog(@"Hello, World!"); } return 0; } // // XYPoint.h // Demo2 // // Created by Xin Huang on 11-12-13. // Copyright (c) 2011年 douban. All rights reserved. // #import <Foundation/Foundation.h> @interface XYPoint : NSObject { int x; int y; } @propertyint x,y; -(void)setX:(int)x andY:(int)y; @end // // XYPoint.m // Demo2 // // Created by Xin Huang on 11-12-13. // Copyright (c) 2011年 douban. All rights reserved. // #import "XYPoint.h" @implementation XYPoint @synthesize x,y; - (void)setX:(int)x andY:(int)y { self.x = x; self.y = y; } @end // // Point.h // Demo2 // // Created by Xin Huang on 11-12-13. // Copyright (c) 2011年 douban. All rights reserved. // #import <Foundation/Foundation.h> @classXYPoint; @interface Rectangle: NSObject { int width; int height; XYPoint* point; } @propertyint width,height; - (XYPoint *) origin; - (void) set_origin:(XYPoint *)point; - (void) set_width:(int)width andSetHeight:(int)height; - (int) area; @end // // Point.m // Demo2 // // Created by Xin Huang on 11-12-13. // Copyright (c) 2011年 douban. All rights reserved. // #import "Rectangle.h" @implementation Rectangle @synthesize width,height; - (XYPoint *) origin { returnpoint; } - (void) set_origin:(XYPoint *)point { self -> point = point; } - (void) set_width:(int)width andSetHeight:(int)height { self.width = width; self.height = height; } - (int) area { returnself.height * self.width; } @end(收起)2011-12-14 15:49:33 回应
-
类,对象和方法
/代码内容已省略/ (更多)// // main.m // OCStudy // // Created by Xin Huang on 11-12-11. // Copyright (c) 2011年 douban. All rights reserved. // #import <Foundation/Foundation.h> @interface Person : NSObject{ int age; int deposit; } - (void)print; - (void)add_deposit:(int)n; - (int)deposit; - (int)age; @end @implementation Person - (void)print { NSLog(@"age is %i , deposit is %i",age,deposit); } - (void)add_deposit:(int)n { deposit += n; } - (void)set_age:(int)n { age = n; } - (void)set_deposit:(int)n { deposit = n; } - (int)deposit { returndeposit; } - (int)age { returnage; } @end int main (int argc, constchar * argv[]) { @autoreleasepool { //Person *p1 ; //p1 = [Person alloc]; //p1 = [p1 init]; //Person *p1 = [[Person alloc] init]; Person *p1 = [Person new]; [p1 set_age:23]; [p1 set_deposit:800]; [p1 print]; NSLog(@"age:%i",[p1 age]); } return 0; }(收起)2011-12-14 15:48:26 回应
-
第24页
Ovilia (静观己心,厚积薄发)
First Objective-C program after `Hello world'. /代码内容已省略/ (更多)First Objective-C program after `Hello world'.// // main.m // prog1 // // Created by ovilia on 9/22/11. // Copyright 2011 __MyCompanyName__. All rights reserved. // #import <Foundation/Foundation.h> /** * @interface section */ @interface Fraction : NSObject { @private int numerator; int denominator; } -(void) print; -(void) setNumerator:(int)n; -(void) setDenominator:(int)d; @end /** * @implementation section */ @implementation Fraction -(void) print { NSLog(@"%i/%i", numerator, denominator); } -(void) setNumerator:(int)n { numerator = n; } -(void) setDenominator:(int)d { denominator = d; } @end /** * program section */ int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; Fraction *myFraction; // Create an instance myFraction = [Fraction alloc]; myFraction = [myFraction init]; // Set fraction to 1/3 [myFraction setDenominator: 3]; [myFraction setNumerator: 1]; // Display NSLog(@"The value of myFraction is "); [myFraction print]; [myFraction release]; [pool drain]; return 0; }(收起)2011-09-22 19:46:40 2回应
-
XCode4控制台
所有的书上,都是讲XCode3. 网上所有的视频,都是讲XCode4怎么建立一个GUI…… 学习Object-c语法还是控制台把….. File ---> New Project ---> Command Line Tools ---> Type(Foundation) (更多)所有的书上,都是讲XCode3.网上所有的视频,都是讲XCode4怎么建立一个GUI……学习Object-c语法还是控制台把…..File ---> New Project ---> Command Line Tools ---> Type(Foundation) (收起)2011-12-14 15:50:05 3回应
-
面向对象
/代码内容已省略/ (更多)// // main.m // Demo2 // // Created by Xin Huang on 11-12-13. // Copyright (c) 2011年 douban. All rights reserved. // #import <Foundation/Foundation.h> #import "XYPoint.h" #import "Rectangle.h" int main (int argc, constchar * argv[]) { @autoreleasepool { Rectangle* rec = [Rectanglenew]; [rec set_width:20 andSetHeight:10]; NSLog(@"area:%i",[rec area]); // insert code here... NSLog(@"Hello, World!"); } return 0; } // // XYPoint.h // Demo2 // // Created by Xin Huang on 11-12-13. // Copyright (c) 2011年 douban. All rights reserved. // #import <Foundation/Foundation.h> @interface XYPoint : NSObject { int x; int y; } @propertyint x,y; -(void)setX:(int)x andY:(int)y; @end // // XYPoint.m // Demo2 // // Created by Xin Huang on 11-12-13. // Copyright (c) 2011年 douban. All rights reserved. // #import "XYPoint.h" @implementation XYPoint @synthesize x,y; - (void)setX:(int)x andY:(int)y { self.x = x; self.y = y; } @end // // Point.h // Demo2 // // Created by Xin Huang on 11-12-13. // Copyright (c) 2011年 douban. All rights reserved. // #import <Foundation/Foundation.h> @classXYPoint; @interface Rectangle: NSObject { int width; int height; XYPoint* point; } @propertyint width,height; - (XYPoint *) origin; - (void) set_origin:(XYPoint *)point; - (void) set_width:(int)width andSetHeight:(int)height; - (int) area; @end // // Point.m // Demo2 // // Created by Xin Huang on 11-12-13. // Copyright (c) 2011年 douban. All rights reserved. // #import "Rectangle.h" @implementation Rectangle @synthesize width,height; - (XYPoint *) origin { returnpoint; } - (void) set_origin:(XYPoint *)point { self -> point = point; } - (void) set_width:(int)width andSetHeight:(int)height { self.width = width; self.height = height; } - (int) area { returnself.height * self.width; } @end(收起)2011-12-14 15:49:33 回应
-
类,对象和方法
/代码内容已省略/ (更多)// // main.m // OCStudy // // Created by Xin Huang on 11-12-11. // Copyright (c) 2011年 douban. All rights reserved. // #import <Foundation/Foundation.h> @interface Person : NSObject{ int age; int deposit; } - (void)print; - (void)add_deposit:(int)n; - (int)deposit; - (int)age; @end @implementation Person - (void)print { NSLog(@"age is %i , deposit is %i",age,deposit); } - (void)add_deposit:(int)n { deposit += n; } - (void)set_age:(int)n { age = n; } - (void)set_deposit:(int)n { deposit = n; } - (int)deposit { returndeposit; } - (int)age { returnage; } @end int main (int argc, constchar * argv[]) { @autoreleasepool { //Person *p1 ; //p1 = [Person alloc]; //p1 = [p1 init]; //Person *p1 = [[Person alloc] init]; Person *p1 = [Person new]; [p1 set_age:23]; [p1 set_deposit:800]; [p1 print]; NSLog(@"age:%i",[p1 age]); } return 0; }(收起)2011-12-14 15:48:26 回应
书评 · · · · · · 我来评论这本书
热门评论 最新评论
china-pub 已经到货了哦
-
- icekey china-pub 已经到货了哦 http://www.china-pub.com/195824 另外9.12日在北京赛迪大厦二层有第一届iPhone开发者技术交流大会 , 详情查看:http://www.china-pub.com/STATIC07/0908/zh_chopenday_090811.as......2009-09-02
"Objective-C 2.0程序设计"的论坛 · · · · · ·
| Answers to Exercises | 来自nevercry | 2010-09-05 | |
| 课后题源代码 谁有啊 | 来自品时言光 | 2011-08-04 | |
| 今天刚买的~~ | 来自〇 | 4 回应 | 2010-09-18 |
| 不知道翻译的怎样? | 来自善为 | 2010-06-02 |
在哪儿买这本书? · · · · · ·
以下豆列推荐 · · · · · · (全部)
- Cocoa && Objective-C (听临℠)
- Iphone (uncutstone)
- iPhone系列 (豆腐丝)
- MAC OS & iOS开发 (yanyanlong)
- iphone dev (xxd)
谁读这本书?
喜欢这本书的人常去的小组 · · · · · ·

- Objective-C (532)

- Apple4us (354)

- joomla (421)

- TextMate (663)

- KESO (1022)

- 深圳程序员协会 (244)

- V2EX (547)

- OpenGL开发设计兴趣小组 (266)
喜欢这本书的人关注的活动 · · · · · ·
订阅关于Objective-C 2.0程序设计的评论:
feed: rss 2.0











