Objective-C程序设计(第6版 英文版)

Objective-C程序设计(第6版 英文版)
分享
扫描下方二维码分享到微信
打开微信,点击右上角”+“,
使用”扫一扫“即可将网页分享到朋友圈。
作者: [美] (史蒂芬.G.寇肯)
2016-03
版次: 6
ISBN: 9787121272752
定价: 99.00
装帧: 平装
开本: 16开
纸张: 胶版纸
页数: 544页
字数: 816千字
正文语种: 英语
10人买过
  •   本书是为在苹果iOS和OSX平台上,使用Objective-C语言和面向对象程序设计模式进行专业开发而编写的简洁、细致的入门读物。本书假设读者无面向对象程序语言或C语言编程经验,以保障初学者与有经验的程序员一样,可用本书迅速和有效地学习Objective-C。本书提供的学习方法独特,配有众多程序示例及章末练习,适合自学和课堂教学。第6版已全面更新,充分纳入Objective-C的新功能与技术,同时覆盖对新版Xcode、iOS和MacOSXMavericks的介绍。

      StephenG.Kochan,是多本畅销书的作者或合著者,其中有关于C语言的,包括ProgramminginC(Sams,2004)、ProgramminginANSIC(Sams,1994)和TopicsinCProgramming(Wiley,1991),也有关于UNIX的,包括ExploringtheUNIXSystem(Sams,1992)和UNIXShellProgramming(Sams,2003)。从1984年Mac最初引进时,他就开始在Macintosh计算机上编程了,他编写的ProgrammingCfortheMac是ApplePressLibrary的一部分。2003年,Kochan编写了ProgramminginObjective-C(Sams,2003),之后编写了另一本与Mac有关的书籍BeginningAppleScript(Wiley,2004)。
    1 Introduction
    What You Will Learn from This Book
    How This Book Is Organized
    Support
    Acknowledgments
    Preface to the Sixth Edition
    I: The Objective-C Language
    2 Programming in Objective-C
    Compiling and Running Programs
    Using Xcode
    Using Terminal
    Explanation of Your First Program
    Displaying the Values of Variables
    Summary
    Exercises
    3 Classes, Objects, and Methods
    What Is an Object, Anyway?
    Instances and Methods
    An Objective-C Class for Working with Fractions
    The @interface Section
    Choosing Names
    Class and Instance Methods
    The @implementation Section
    The program Section
    Accessing Instance Variables and Data Encapsulation
    Summary
    Exercises
    4 Data Types and Expressions
    Data Types and Constants
    Type int
    Type float
    Type char
    Qualifiers: long, long long, short, unsigned, and signed
    Type id
    Arithmetic Expressions
    Operator Precedence
    Integer Arithmetic and the Unary Minus Operator
    The Modulus Operator
    Integer and Floating-Point Conversions
    The Type Cast Operator
    Assignment Operators
    A Calculator Class
    Exercises
    5 Program Looping
    The for Statement
    Keyboard Input
    Nested for Loops
    for Loop Variants
    The while Statement
    The do Statement
    The break Statement
    The continue Statement
    Summary
    Exercises
    6 Making Decisions
    The if Statement
    The if-else Construct
    Compound Relational Tests
    Nested if Statements
    The else if Construct
    The switch Statement
    Boolean Variables
    The Conditional Operator
    Exercises
    7 More on Classes
    Separate Interface and Implementation Files
    Synthesized Accessor Methods
    Accessing Properties Using the Dot Operator
    Multiple Arguments to Methods
    Methods without Argument Names
    Operations on Fractions
    Local Variables
    Method Arguments
    The static Keyword
    The self Keyword
    Allocating and Returning Objects from Methods
    Extending Class Definitions and the Interface File
    Exercises
    8 Inheritance
    It All Begins at the Root
    Finding the Right Method
    Extension through Inheritance: Adding New Methods
    A Point Class and Object Allocation
    The @class Directive
    Classes Owning Their Objects
    Overriding Methods
    Which Method Is Selected?
    Abstract Classes
    Exercises
    9 Polymorphism, Dynamic Typing, and Dynamic Binding
    Polymorphism: Same Name, Different Class
    Dynamic Binding and the id Type
    Compile Time Versus Runtime Checking
    The id Data Type and Static Typing
    Argument and Return Types with Dynamic Typing
    Asking Questions about Classes
    Exception Handling Using @try
    Exercises
    10 More on Variables and Data Types
    Initializing Objects
    Scope Revisited
    More on Properties, Synthesized Accessors, and Instance Variables
    Global Variables
    Static Variables
    Enumerated Data Types
    The typedef Statement
    Data Type Conversions
    Conversion Rules
    Bit Operators
    The Bitwise AND Operator
    The Bitwise Inclusive-OR Operator
    The Bitwise Exclusive-OR Operator
    The Ones Complement Operator
    The Left-Shift Operator
    The Right-Shift Operator
    Exercises
    11 Categories and Protocols
    Categories
    Class Extensions
    Some Notes about Categories
    Protocols and Delegation
    Delegation
    Informal Protocols
    Composite Objects
    Exercises
    12 The Preprocessor
    The #define Statement
    More Advanced Types of Definitions
    The #import Statement
    Conditional Compilation
    The #ifdef , #endif , #else , and #ifndef Statements
    The #if and #elif Preprocessor Statements
    The #undef Statement
    Exercises
    13 Underlying C Language Features
    Arrays
    Initializing Array Elements
    Character Arrays
    Multidimensional Arrays
    Functions
    Arguments and Local Variables
    Returning Function Results
    Functions, Methods, and Arrays
    Blocks
    Structures
    Initializing Structures
    Structures within Structures
    Additional Details about Structures
    Don’t Forget about Object-Oriented Programming!
    Pointers
    Pointers and Structures
    Pointers, Methods, and Functions
    Pointers and Arrays
    Operations on Pointers
    Pointers and Memory Addresses
    They’re Not Objects!
    Miscellaneous Language Features
    Compound Literals
    The goto Statement
    The Null Statement
    The Comma Operator
    The sizeof Operator
    Command-Line Arguments
    How Things Work
    Fact 1: Instance Variables Are Stored in Structures
    Fact 2: An Object Variable Is Really a Pointer
    Fact 3: Methods Are Functions, and Message Expressions Are Function Calls
    Fact 4: The id Type Is a Generic Pointer Type
    Exercises
    II: The Foundation Framework
    14 Introduction to the Foundation Framework
    Foundation Documentation
    15 Numbers, Strings, and Collections
    Number Objects
    String Objects
    More on the NSLog Function
    The description Method
    Mutable Versus Immutable Objects
    Mutable Strings
    Array Objects
    Making an Address Book
    Sorting Arrays
    Dictionary Objects
    Enumerating a Dictionary
    Set Objects
    NSIndexSet
    Exercises
    16 Working with Files
    Managing Files and Directories: NSFileManager
    Working with the NSData Class
    Working with Directories
    Enumerating the Contents of a Directory
    Working with Paths: NSPathUtilities.h
    Common Methods for Working with Paths
    Copying Files and Using the NSProcessInfo Class
    Basic File Operations: NSFileHandle
    The NSURL Class
    The NSBundle Class
    Exercises
    17 Memory Management and Automatic Reference Counting
    Automatic Garbage Collection
    Manual Reference Counting
    Object References and the Autorelease Pool
    The Event Loop and Memory Allocation
    Summary of Manual Memory Management Rules
    Automatic Reference Counting
    Strong Variables
    Weak Variables
    @autoreleasepool Blocks
    Method Names and Non-ARC Compiled Code
    18 Copying Objects
    The copy and mutableCopy Methods
    Shallow Versus Deep Copying
    Implementing the <NSCopying> Protocol
    Copying Objects in Setter and Getter Methods
    Exercises
    19 Archiving
    Archiving with XML Property Lists
    Archiving with NSKeyedArchiver
    Writing Encoding and Decoding Methods
    Using NSData to Create Custom Archives
    Using the Archiver to Copy Objects
    Exercises
    III: Cocoa, Cocoa Touch, and the iOS SDK
    20 Introduction to Cocoa and Cocoa Touch
    Framework Layers
    Cocoa Touch
    21 Writing iOS Applications
    The iOS SDK
    Your First iPhone Application
    Creating a New iPhone Application Project
    Entering Your Code
    Designing the Interface
    An iPhone Fraction Calculator
    Starting the New Fraction_Calculator Project
    Defining the View Controller
    The Fraction Class
    A Calculator Class That Deals with Fractions
    Designing the User Interface
    Summary
    Exercises
    Appendixes
    A Glossary
    B Address Book Example Source Code
    Index
  • 内容简介:
      本书是为在苹果iOS和OSX平台上,使用Objective-C语言和面向对象程序设计模式进行专业开发而编写的简洁、细致的入门读物。本书假设读者无面向对象程序语言或C语言编程经验,以保障初学者与有经验的程序员一样,可用本书迅速和有效地学习Objective-C。本书提供的学习方法独特,配有众多程序示例及章末练习,适合自学和课堂教学。第6版已全面更新,充分纳入Objective-C的新功能与技术,同时覆盖对新版Xcode、iOS和MacOSXMavericks的介绍。

  • 作者简介:
      StephenG.Kochan,是多本畅销书的作者或合著者,其中有关于C语言的,包括ProgramminginC(Sams,2004)、ProgramminginANSIC(Sams,1994)和TopicsinCProgramming(Wiley,1991),也有关于UNIX的,包括ExploringtheUNIXSystem(Sams,1992)和UNIXShellProgramming(Sams,2003)。从1984年Mac最初引进时,他就开始在Macintosh计算机上编程了,他编写的ProgrammingCfortheMac是ApplePressLibrary的一部分。2003年,Kochan编写了ProgramminginObjective-C(Sams,2003),之后编写了另一本与Mac有关的书籍BeginningAppleScript(Wiley,2004)。
  • 目录:
    1 Introduction
    What You Will Learn from This Book
    How This Book Is Organized
    Support
    Acknowledgments
    Preface to the Sixth Edition
    I: The Objective-C Language
    2 Programming in Objective-C
    Compiling and Running Programs
    Using Xcode
    Using Terminal
    Explanation of Your First Program
    Displaying the Values of Variables
    Summary
    Exercises
    3 Classes, Objects, and Methods
    What Is an Object, Anyway?
    Instances and Methods
    An Objective-C Class for Working with Fractions
    The @interface Section
    Choosing Names
    Class and Instance Methods
    The @implementation Section
    The program Section
    Accessing Instance Variables and Data Encapsulation
    Summary
    Exercises
    4 Data Types and Expressions
    Data Types and Constants
    Type int
    Type float
    Type char
    Qualifiers: long, long long, short, unsigned, and signed
    Type id
    Arithmetic Expressions
    Operator Precedence
    Integer Arithmetic and the Unary Minus Operator
    The Modulus Operator
    Integer and Floating-Point Conversions
    The Type Cast Operator
    Assignment Operators
    A Calculator Class
    Exercises
    5 Program Looping
    The for Statement
    Keyboard Input
    Nested for Loops
    for Loop Variants
    The while Statement
    The do Statement
    The break Statement
    The continue Statement
    Summary
    Exercises
    6 Making Decisions
    The if Statement
    The if-else Construct
    Compound Relational Tests
    Nested if Statements
    The else if Construct
    The switch Statement
    Boolean Variables
    The Conditional Operator
    Exercises
    7 More on Classes
    Separate Interface and Implementation Files
    Synthesized Accessor Methods
    Accessing Properties Using the Dot Operator
    Multiple Arguments to Methods
    Methods without Argument Names
    Operations on Fractions
    Local Variables
    Method Arguments
    The static Keyword
    The self Keyword
    Allocating and Returning Objects from Methods
    Extending Class Definitions and the Interface File
    Exercises
    8 Inheritance
    It All Begins at the Root
    Finding the Right Method
    Extension through Inheritance: Adding New Methods
    A Point Class and Object Allocation
    The @class Directive
    Classes Owning Their Objects
    Overriding Methods
    Which Method Is Selected?
    Abstract Classes
    Exercises
    9 Polymorphism, Dynamic Typing, and Dynamic Binding
    Polymorphism: Same Name, Different Class
    Dynamic Binding and the id Type
    Compile Time Versus Runtime Checking
    The id Data Type and Static Typing
    Argument and Return Types with Dynamic Typing
    Asking Questions about Classes
    Exception Handling Using @try
    Exercises
    10 More on Variables and Data Types
    Initializing Objects
    Scope Revisited
    More on Properties, Synthesized Accessors, and Instance Variables
    Global Variables
    Static Variables
    Enumerated Data Types
    The typedef Statement
    Data Type Conversions
    Conversion Rules
    Bit Operators
    The Bitwise AND Operator
    The Bitwise Inclusive-OR Operator
    The Bitwise Exclusive-OR Operator
    The Ones Complement Operator
    The Left-Shift Operator
    The Right-Shift Operator
    Exercises
    11 Categories and Protocols
    Categories
    Class Extensions
    Some Notes about Categories
    Protocols and Delegation
    Delegation
    Informal Protocols
    Composite Objects
    Exercises
    12 The Preprocessor
    The #define Statement
    More Advanced Types of Definitions
    The #import Statement
    Conditional Compilation
    The #ifdef , #endif , #else , and #ifndef Statements
    The #if and #elif Preprocessor Statements
    The #undef Statement
    Exercises
    13 Underlying C Language Features
    Arrays
    Initializing Array Elements
    Character Arrays
    Multidimensional Arrays
    Functions
    Arguments and Local Variables
    Returning Function Results
    Functions, Methods, and Arrays
    Blocks
    Structures
    Initializing Structures
    Structures within Structures
    Additional Details about Structures
    Don’t Forget about Object-Oriented Programming!
    Pointers
    Pointers and Structures
    Pointers, Methods, and Functions
    Pointers and Arrays
    Operations on Pointers
    Pointers and Memory Addresses
    They’re Not Objects!
    Miscellaneous Language Features
    Compound Literals
    The goto Statement
    The Null Statement
    The Comma Operator
    The sizeof Operator
    Command-Line Arguments
    How Things Work
    Fact 1: Instance Variables Are Stored in Structures
    Fact 2: An Object Variable Is Really a Pointer
    Fact 3: Methods Are Functions, and Message Expressions Are Function Calls
    Fact 4: The id Type Is a Generic Pointer Type
    Exercises
    II: The Foundation Framework
    14 Introduction to the Foundation Framework
    Foundation Documentation
    15 Numbers, Strings, and Collections
    Number Objects
    String Objects
    More on the NSLog Function
    The description Method
    Mutable Versus Immutable Objects
    Mutable Strings
    Array Objects
    Making an Address Book
    Sorting Arrays
    Dictionary Objects
    Enumerating a Dictionary
    Set Objects
    NSIndexSet
    Exercises
    16 Working with Files
    Managing Files and Directories: NSFileManager
    Working with the NSData Class
    Working with Directories
    Enumerating the Contents of a Directory
    Working with Paths: NSPathUtilities.h
    Common Methods for Working with Paths
    Copying Files and Using the NSProcessInfo Class
    Basic File Operations: NSFileHandle
    The NSURL Class
    The NSBundle Class
    Exercises
    17 Memory Management and Automatic Reference Counting
    Automatic Garbage Collection
    Manual Reference Counting
    Object References and the Autorelease Pool
    The Event Loop and Memory Allocation
    Summary of Manual Memory Management Rules
    Automatic Reference Counting
    Strong Variables
    Weak Variables
    @autoreleasepool Blocks
    Method Names and Non-ARC Compiled Code
    18 Copying Objects
    The copy and mutableCopy Methods
    Shallow Versus Deep Copying
    Implementing the <NSCopying> Protocol
    Copying Objects in Setter and Getter Methods
    Exercises
    19 Archiving
    Archiving with XML Property Lists
    Archiving with NSKeyedArchiver
    Writing Encoding and Decoding Methods
    Using NSData to Create Custom Archives
    Using the Archiver to Copy Objects
    Exercises
    III: Cocoa, Cocoa Touch, and the iOS SDK
    20 Introduction to Cocoa and Cocoa Touch
    Framework Layers
    Cocoa Touch
    21 Writing iOS Applications
    The iOS SDK
    Your First iPhone Application
    Creating a New iPhone Application Project
    Entering Your Code
    Designing the Interface
    An iPhone Fraction Calculator
    Starting the New Fraction_Calculator Project
    Defining the View Controller
    The Fraction Class
    A Calculator Class That Deals with Fractions
    Designing the User Interface
    Summary
    Exercises
    Appendixes
    A Glossary
    B Address Book Example Source Code
    Index
查看详情
系列丛书 / 更多
Objective-C程序设计(第6版 英文版)
Effective Java(第2版 英文版)
[美]Joshua Bloch(约书亚·布洛赫) 著
Objective-C程序设计(第6版 英文版)
代码大全(第2版 英文版)
[美]Steve McConnell(史蒂夫·迈克康奈尔) 著
Objective-C程序设计(第6版 英文版)
Effective Javascript:编写高质量JavaScript代码的68个有效方法(英文版)
[美]David Herman(大卫·赫尔曼) 著
Objective-C程序设计(第6版 英文版)
Java虚拟机规范(Java SE 8版 英文版)
[美]Tim(蒂姆·林霍尔姆)、[美]Frank(费兰克·耶林)、[美]Gilad(吉拉德·布拉查)、[美]Alex Buckley(亚力克斯·巴克利) 著
Objective-C程序设计(第6版 英文版)
C11编程导论(英文版)
[美]Paul(保罗·戴特尔)、Harvey Deitel(哈维·戴特尔) 著
Objective-C程序设计(第6版 英文版)
C语言程序设计(第4版 英文版)
[美]Stephen G.Kochan(史蒂芬·G·寇肯) 著
Objective-C程序设计(第6版 英文版)
实现领域驱动设计英文版
[美]Vaughn Vernon(沃恩·弗农) 著
Objective-C程序设计(第6版 英文版)
Effective Objective-C 2.0:编写高质量iOS与OS X代码的52个有效方法 英文版
[美]Matt Galloway(马特·加洛韦) 著
Objective-C程序设计(第6版 英文版)
Clean Architecture:软件架构与设计匠艺(英文版)
[美]Robert、C.Martin 著
Objective-C程序设计(第6版 英文版)
Effective Ruby:编写高质量Ruby代码的48个有效方法(英文版)
[美]Peter J.Jones(彼得·J.琼斯) 著
Objective-C程序设计(第6版 英文版)
Effective SQL:编写高质量SQL语句的61条有效方法(英文版)
约翰·L·威克斯(John L.Viescas);道格拉斯·J·斯蒂尔(Douglas J.Steele);本·G·克洛希尔(Ben G.Clothier)
Objective-C程序设计(第6版 英文版)
Java SE8 程序设计(第3版 英文版)
[美]Paul(保罗·戴特尔)、Harvey Deitel(哈维·戴特尔) 著
相关图书 / 更多
Objective-C程序设计(第6版 英文版)
ObjectiveIELTSAdvancedSelfStudyStudent'sBook[WithCDROM]
Michael Black 著
Objective-C程序设计(第6版 英文版)
Observatory Mansions A Novel
Carey;Edward
Objective-C程序设计(第6版 英文版)
Objectivity
Lorraine Daston 著
Objective-C程序设计(第6版 英文版)
ObservationalCinema:Anthropology,Film,andtheExplorationofSocialLife
Anna Grimshaw 著
Objective-C程序设计(第6版 英文版)
Objectives and Key Results Driving Focus, Alignment, and Engagement with OKRs
Niven;Paul R.;Lamorte;Ben
Objective-C程序设计(第6版 英文版)
Obama:APromiseofChange
David Mendell 著
Objective-C程序设计(第6版 英文版)
ObjectiveCAEStudent'sBook
Felicity O'Dell 著
Objective-C程序设计(第6版 英文版)
Obstetrics:NormalandProblemPregnancies,6thEdition(ObstetricsNormalandProblemPreqnancies)
Steven G. Gabbe、Jennifer R. Niebyl、Henry L. Galan 著
Objective-C程序设计(第6版 英文版)
ObjectiveIeltsAdvancedStudent'sBook[WithCDROM]
Annette Capel 著
Objective-C程序设计(第6版 英文版)
Obi-Wan'sFoe
Jane Mason、Sarah Stephens、Tommy Lee Edwards 著
Objective-C程序设计(第6版 英文版)
ObjectiveKET
Annette Capel 著
Objective-C程序设计(第6版 英文版)
ObjectiveIeltsIntermediateSelfStudyStudent'sBook[WithCDROM]
Michael Black 著
您可能感兴趣 / 更多
Objective-C程序设计(第6版 英文版)
归属感:如何通过社群获得商业竞争优势
[美]大卫·斯平克斯(David Spinks) 著;颉腾文化 出品
Objective-C程序设计(第6版 英文版)
《世界上最大的肚子》2024百班千人暑期书目学前中班名师推荐全新正版现货速发
[美]雷米·查利普(美)柏顿·萨普瑞
Objective-C程序设计(第6版 英文版)
经济学通义
[美]阿门·A.阿尔钦 (美)威廉·R.艾伦 著;[美]杰里·L.乔丹 编
Objective-C程序设计(第6版 英文版)
数字化领导力 数字化转型锦囊,领导力精进指南 一本书掌握数字化转型领导力之道
[美]艾萨克·萨科里克 著;王磊 译;颉腾文化 出品;邓斌
Objective-C程序设计(第6版 英文版)
法哲学基本原理
[美]马克·C.墨菲
Objective-C程序设计(第6版 英文版)
雪花的故事(用照片展示雪花的秘密,为你揭开冬日奇景的奥秘)
[美]马克·卡西诺[美]乔恩·尼尔森
Objective-C程序设计(第6版 英文版)
杜甫传
[美]弗洛伦斯.艾思柯
Objective-C程序设计(第6版 英文版)
神奇的数字零:从数字0开始的极简数学史和人类发展史
[美]查尔斯·塞弗(Charles Seife)著 杨杨立汝 译
Objective-C程序设计(第6版 英文版)
美利坚在燃烧:20世纪60年代以来的警察暴力与黑人反抗
[美]伊丽莎白·欣顿 著 胡位钧 译
Objective-C程序设计(第6版 英文版)
温柔亲启
[美]艾米莉·狄金森 著;[美]艾伦·路易斯·哈特、[美]玛莎·内尔·史密斯 编
Objective-C程序设计(第6版 英文版)
儒教中国及其现代命运(三部曲)
[美]列文森 作者;[中]季剑青 译者
Objective-C程序设计(第6版 英文版)
逃家小兔成长绘本系列
[美]玛格丽特.怀兹.布朗