: Scott Knaster, Mark Dalrymple
: Learn Objective-C on the Mac
: Apress
: 9781430218166
: 1
: CHF 42.70
:
: Allgemeines, Lexika
: English
: 360
: Wasserzeichen/DRM
: PC/MAC/eReader/Tablet
: PDF

Take your coding skills to the next level with this extensive guide to Objective-C, the native programming language for developing sophisticated software applications for Mac OS X. Objective-C is a powerful, object-oriented extension of C, making this book the perfect follow-up to Dave Mark's bestsellingLearn C on the Mac, Mac OS X Edition. Whether you're an experienced C programmer or you're coming from a different language such as C++ or Java, leading Mac expertsMark Dalrymple andScott Knaster show you how to harness the powers of Objective-C in your applications!

  • A complete course on the basics of Objective-C using Apple's free Xcode tools
  • An introduction to object-oriented programming
  • Comprehen ive coverage of inheritance, composition, object initialization, categories, protocols, memory management, and organizing source files
  • A brief tour of Cocoa's foundation framework and AppKit
  • A helpful 'learning curve' guide for non-C developers


Scott Knaster is a legendary Mac hacker and author of such bestselling books as Hacking Mac OS X Tiger and Macintosh Programming Secrets. His book How to Write Macintosh Software was required reading for Mac programmers for more than a decade.
Hello17
Before You Start17
Where the Future Was Made Yesterday18
What s Coming Up18
Summary19
Extensions to C20
The Simplest Objective-C Program20
Deconstructing Hello Objective-C23
Are You the Boolean Type?28
Summary33
Introduction to Object-Oriented Programming34
It s All Indirection35
Using Indirection in Object-Oriented Programming45
Time Out for Terminology57
OOP in Objective-C58
Summary70
Inheritance71
Why Use Inheritance?71
Inheritance Syntax76
How Inheritance Works79
Overriding Methods83
Summary86
Composition87
What Is Composition?87
Accessor Methods92
Extending CarParts98
Composition or Inheritance?99
Summary100
Source File Organization101
Split Interface and Implementation101
Breaking Apart the Car105
Using Cross-File Dependencies107
Summary114
More About Xcode115
Changing the Company Name116
Using Editor Tips and Tricks117
WritingYour Code with a Little Help from Xcode119
Getting Information135
Debugging137
Cheat Sheet143
Summary144
A Quick Tour of the Foundation Kit145
Some Useful Types146
Stringing Us Along148
Mutability153
Collection Agency155
Family Values165
Example: Looking for Files168
Summary173
Memory Management174
Object Life Cycle175
Autorelease180
The Rules of Cocoa Memory Management184
Summary190
Object Initialization191
Allocating Objects191
Initializing Objects192
Isn t That Convenient?195
More Parts Is Parts196
Car Cleaning, GC Style205
The Designated Initializer207
Initializer Rules212
Summary212
Properties213
Shrinking Property Values214
Objecting to Properties220
Summary227
Categories228
Creating a Category228
Splitting an Implementation with Categories232
Making Forward References with Categories237
Informal Protocols and Delegation Categories238
Summary245
Protocols246
Formal Protocols246
Carbon Copies248
Objective-C 2.0 Goodies257
Summary258
Introduction to the AppKit259
Making the Project259
Making the AppController @interface262
Interface Builder263
Laying Out the User Interface266
Making Connections268
AppController Implementation272
Summary274
File Loading and Saving275
Property Lists275
Encoding Objects279
Summary286
Key-Value Coding287
A Starter Project287
Introducing KVC290
A Path! A Path!291
Aggregated Assault292
Life s a Batch300
The Nils Are Alive302
Handling the Unhandled302
Summary304
NSPredicate305
Creating a Predicate306
Fuel Filters308
Format Specifiers309
Hello Operator, Give Me Number 9311
SELF Sufficient314
String Operations315
Like, Fer Sure316
That s All, Folks316
Coming to Objective-C from Other Languages317
Coming from C318
Coming from C++319
Coming from Java324
Coming from BASIC326
Coming from Scripting Languages326
Summary327
Index328