店铺推荐
【推荐语】
《Cocoa与Objective-C:构建与运行(英文)(影印版)》:获得C语言编程基础技能的快速实践导览,学习如何使用Interface Builder快速设计并构建应用的用户界面原型,通过创建对象和学习内存管理,开始使用Objective-C,学习用于对象之间共享数据的模型-视图-控制器(MVC)方法,理解基础值类,这是Cocoa存储一般数据类型的健壮API, 熟悉Apple的图形框架,并且学习如何用AppKit制作定制视图。
【作者】
作者:(美国)史蒂文森(Scott Stevenson) Scott Stevenson,从事Cocoa应用开发八年,此外还拥有六年相关教学经验。他曾创建了风靡一时的Mac编程博客Theocacao,并且于2003年接手Cocoa Dev Central,成为主笔和编辑。他在硅谷组织了多场Cocoa Heads会议,并发表演讲。
【内容】
《Cocoa与Objective-C:构建与运行(英文)(影印版)》给你打下充分的理论基础,然后向你展示如何使用Apple的快速开发工具——Xcode和Interface Builder,来开发Cocoa应用程序、管理用户交互、创建很棒的UI等等。你将迅速获得开发高级软件所需的经验,无论你是编程新手还是该平台的入门用户。
为Mac、iPhone和iPad打造健壮的应用程序,无论你是只有基本的编程技能,还是有多年的开发经验。在《Cocoa与Objective-C:构建与运行(英文)(影印版)》中,你将通过循序渐进的教程、亲身实践的练习、简明扼要的范例,以及来自Cocoa专家的谆谆教诲,学会如何运用Apple的Cocoa框架和Objective-C语
言。
【目录】
Preface
1. Setup and First Run
Download and Install Xcode
Your First Application
Create the Interface
Run the Finished Application
2. Thinking in Code: Basic C
How Code Works
How to Format Code
Variables
Types
Constants
Enumerated Types
Typedefs
Functions
Declaring Functions
Example: First Program
Displaying Values on the Command Line
Compile and Run the Example
Scope
Static Variables
Conditionals
Example: Shopping Trip
Compile and Run
Wrap Up
3. Memory and Pointers: Advanced C
Arrays
Loops
Text Strings
Multidimensional Arrays
Pointers
The Purpose of Pointers
Using Pointers
Pointers and the const Keyword
Dynamic Memory
Strings and Dynamic Memory
Returning Strings from Functions
Arrays of Strings
Example: Address Book
Compile and Run the Address Book Example
Structs
Header Files
Compile and Run the Header File Test Example
Create Files for the Song Struct
Final Example
4. Thinking in Objects
Structs and Classes
Designing Classes
Accessors
Inheritance
Composition
Object Lifetime
Built-in Classes
5. Basic Objective-C
NSString Basics
Using Methods
Nested Method Calls
Multi-Input Methods
Accessors
Dot Syntax
Creating Objects
Basic Memory Management
Using Autorelease Directly
Declaring a Class
Add Methods
Implementing a Class
init
dealloc
Example: PhotoInfo
6. More Objective-C
More on Memory Management
The Life of an Instance Variable
Copying Objects
Class Name Prefixes
Properties
Property Options
64-Bit Objective-C
Enabling 64-Bit
Should I Use 64-Bit?
All Further Examples Assume 64-Bit
Categories
Categories for Private Methods
Introspection
Protocols
Dynamic Messaging
Using Selectors to Call Methods
Forwarding Messages
Exceptions
Example: Data Collector
Some New Classes and Methods
Create the Files
Build and Run
7. Foundation Value Classes
NSString
Ranges and Substrings
Using NSString with C Types
Comparing Strings for Equality
Strings As File Paths
Reading and Writing Files with Strings
Mutability
Advantages of Mutability
Advantages of Immutability
Core Foundation
Memory Management
Core Foundation Mutability
Toll-Free Bridging
Core Foundation Types As Properties
Drawbacks of Core Foundation Types
Open Source
NSNumber
CFNumberRef
Cocoa Primitive Types
NSDecimalNumber
NSNumberFormatter
When to Use Which Number Type
NSData
NSMutableData
NSArray
Fast Enumeration
Blocks
NSMutableArray
CFArrayRef
NSIndexSet
NSDictionary
NSMutableDictionary
CFDictionaryRef
NSSet
NSMutableSet
NSValue
NSDate
CFDateRef
8. Basic Controls
How to Use This Chapter
Windows and Views
Targets and Actions
Buttons
Declaring Action Methods
Connecting Actions
Menus
Responder Chain
Pop-up Buttons
Sliders
Text Fields
Outlets
Datasources
Table View Datasource Methods
Implementing Datasource Methods
Bindings
Key-Value Protocols
Bindings for Simple Controls
Bindings for Complex Controls
Tips for Debugging Bindings
……
9 Designing Applications Using MVX
10 Custom Views and Drawing
11 The Final Word
Index
【媒体评论】
“我刚开始在Mac上做开发时,就已是Scott的著作的读者。这本书提供的建议十分隽永,必将有益于读者。”
    ——Rob Rhyne技术评论家和Briefs开发者
返回顶部