Learn Objective-C on the Mac (eBook)

eBook Download: PDF
2009 | 1st ed.
XXII, 360 Seiten
Apress (Verlag)
978-1-4302-1816-6 (ISBN)

Lese- und Medienproben

Learn Objective-C on the Mac - Scott Knaster, Mark Dalrymple
Systemvoraussetzungen
46,99 inkl. MwSt
  • Download sofort lieferbar
  • Zahlungsarten anzeigen

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 bestselling Learn 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 experts Mark Dalrymple and Scott 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
  • Comprehensive 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.
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 bestselling Learn 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 experts Mark Dalrymple and Scott 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 Comprehensive 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.

Hello 17
Before You Start 17
Where the Future Was Made Yesterday 18
What’s Coming Up 18
Summary 19
Extensions to C 20
The Simplest Objective-C Program 20
Deconstructing Hello Objective-C 23
Are You the Boolean Type? 28
Summary 33
Introduction to Object-Oriented Programming 34
It’s All Indirection 35
Using Indirection in Object-Oriented Programming 45
Time Out for Terminology 57
OOP in Objective-C 58
Summary 70
Inheritance 71
Why Use Inheritance? 71
Inheritance Syntax 76
How Inheritance Works 79
Overriding Methods 83
Summary 86
Composition 87
What Is Composition? 87
Accessor Methods 92
Extending CarParts 98
Composition or Inheritance? 99
Summary 100
Source File Organization 101
Split Interface and Implementation 101
Breaking Apart the Car 105
Using Cross-File Dependencies 107
Summary 114
More About Xcode 115
Changing the Company Name 116
Using Editor Tips and Tricks 117
WritingYour Code with a Little Help from Xcode 119
Getting Information 135
Debugging 137
Cheat Sheet 143
Summary 144
A Quick Tour of the Foundation Kit 145
Some Useful Types 146
Stringing Us Along 148
Mutability 153
Collection Agency 155
Family Values 165
Example: Looking for Files 168
Summary 173
Memory Management 174
Object Life Cycle 175
Autorelease 180
The Rules of Cocoa Memory Management 184
Summary 190
Object Initialization 191
Allocating Objects 191
Initializing Objects 192
Isn’t That Convenient? 195
More Parts Is Parts 196
Car Cleaning, GC Style 205
The Designated Initializer 207
Initializer Rules 212
Summary 212
Properties 213
Shrinking Property Values 214
Objecting to Properties 220
Summary 227
Categories 228
Creating a Category 228
Splitting an Implementation with Categories 232
Making Forward References with Categories 237
Informal Protocols and Delegation Categories 238
Summary 245
Protocols 246
Formal Protocols 246
Carbon Copies 248
Objective-C 2.0 Goodies 257
Summary 258
Introduction to the AppKit 259
Making the Project 259
Making the AppController @interface 262
Interface Builder 263
Laying Out the User Interface 266
Making Connections 268
AppController Implementation 272
Summary 274
File Loading and Saving 275
Property Lists 275
Encoding Objects 279
Summary 286
Key-Value Coding 287
A Starter Project 287
Introducing KVC 290
A Path! A Path! 291
Aggregated Assault 292
Life’s a Batch 300
The Nils Are Alive 302
Handling the Unhandled 302
Summary 304
NSPredicate 305
Creating a Predicate 306
Fuel Filters 308
Format Specifiers 309
Hello Operator, Give Me Number 9 311
SELF Sufficient 314
String Operations 315
Like, Fer Sure 316
That’s All, Folks 316
Coming to Objective-C from Other Languages 317
Coming from C 318
Coming from C++ 319
Coming from Java 324
Coming from BASIC 326
Coming from Scripting Languages 326
Summary 327
Index 328

Erscheint lt. Verlag 8.2.2009
Zusatzinfo XXII, 360 p.
Verlagsort Berkeley
Sprache englisch
Themenwelt Informatik Betriebssysteme / Server Macintosh / Mac OS X
Informatik Programmiersprachen / -werkzeuge C / C++
Informatik Programmiersprachen / -werkzeuge Mac / Cocoa Programmierung
Informatik Software Entwicklung Objektorientierung
Schlagworte Class • CoCoA • C++ programming language • Java • object • Objective-C • object-oriented programming • Xcode
ISBN-10 1-4302-1816-9 / 1430218169
ISBN-13 978-1-4302-1816-6 / 9781430218166
Haben Sie eine Frage zum Produkt?
PDFPDF (Wasserzeichen)
Größe: 4,0 MB

DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasser­zeichen und ist damit für Sie persona­lisiert. Bei einer missbräuch­lichen Weiter­gabe des eBooks an Dritte ist eine Rück­ver­folgung an die Quelle möglich.

Dateiformat: PDF (Portable Document Format)
Mit einem festen Seiten­layout eignet sich die PDF besonders für Fach­bücher mit Spalten, Tabellen und Abbild­ungen. Eine PDF kann auf fast allen Geräten ange­zeigt werden, ist aber für kleine Displays (Smart­phone, eReader) nur einge­schränkt geeignet.

Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür einen PDF-Viewer - z.B. den Adobe Reader oder Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür einen PDF-Viewer - z.B. die kostenlose Adobe Digital Editions-App.

Zusätzliches Feature: Online Lesen
Dieses eBook können Sie zusätzlich zum Download auch online im Webbrowser lesen.

Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.

Mehr entdecken
aus dem Bereich