E-Book, Englisch, 360 Seiten
Knaster / Dalrymple Learn Objective-C on the Mac
1. ed
ISBN: 978-1-4302-1816-6
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark
E-Book, Englisch, 360 Seiten
ISBN: 978-1-4302-1816-6
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark
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.
Autoren/Hrsg.
Weitere Infos & Material
1;Hello;17
1.1;Before You Start;17
1.2;Where the Future Was Made Yesterday;18
1.3;What’s Coming Up;18
1.4;Summary;19
2;Extensions to C;20
2.1;The Simplest Objective-C Program;20
2.2;Deconstructing Hello Objective-C;23
2.3;Are You the Boolean Type?;28
2.4;Summary;33
3;Introduction to Object-Oriented Programming;34
3.1;It’s All Indirection;35
3.2;Using Indirection in Object-Oriented Programming;45
3.3;Time Out for Terminology;57
3.4;OOP in Objective-C;58
3.5;Summary;70
4;Inheritance;71
4.1;Why Use Inheritance?;71
4.2;Inheritance Syntax;76
4.3;How Inheritance Works;79
4.4;Overriding Methods;83
4.5;Summary;86
5;Composition;87
5.1;What Is Composition?;87
5.2;Accessor Methods;92
5.3;Extending CarParts;98
5.4;Composition or Inheritance?;99
5.5;Summary;100
6;Source File Organization;101
6.1;Split Interface and Implementation;101
6.2;Breaking Apart the Car;105
6.3;Using Cross-File Dependencies;107
6.4;Summary;114
7;More About Xcode;115
7.1;Changing the Company Name;116
7.2;Using Editor Tips and Tricks;117
7.3;WritingYour Code with a Little Help from Xcode;119
7.4;Getting Information;135
7.5;Debugging;137
7.6;Cheat Sheet;143
7.7;Summary;144
8;A Quick Tour of the Foundation Kit;145
8.1;Some Useful Types;146
8.2;Stringing Us Along;148
8.3;Mutability;153
8.4;Collection Agency;155
8.5;Family Values;165
8.6;Example: Looking for Files;168
8.7;Summary;173
9;Memory Management;174
9.1;Object Life Cycle;175
9.2;Autorelease;180
9.3;The Rules of Cocoa Memory Management;184
9.4;Summary;190
10;Object Initialization;191
10.1;Allocating Objects;191
10.2;Initializing Objects;192
10.3;Isn’t That Convenient?;195
10.4;More Parts Is Parts;196
10.5;Car Cleaning, GC Style;205
10.6;The Designated Initializer;207
10.7;Initializer Rules;212
10.8;Summary;212
11;Properties;213
11.1;Shrinking Property Values;214
11.2;Objecting to Properties;220
11.3;Summary;227
12;Categories;228
12.1;Creating a Category;228
12.2;Splitting an Implementation with Categories;232
12.3;Making Forward References with Categories;237
12.4;Informal Protocols and Delegation Categories;238
12.5;Summary;245
13;Protocols;246
13.1;Formal Protocols;246
13.2;Carbon Copies;248
13.3;Objective-C 2.0 Goodies;257
13.4;Summary;258
14;Introduction to the AppKit;259
14.1;Making the Project;259
14.2;Making the AppController @interface;262
14.3;Interface Builder;263
14.4;Laying Out the User Interface;266
14.5;Making Connections;268
14.6;AppController Implementation;272
14.7;Summary;274
15;File Loading and Saving;275
15.1;Property Lists;275
15.2;Encoding Objects;279
15.3;Summary;286
16;Key-Value Coding;287
16.1;A Starter Project;287
16.2;Introducing KVC;290
16.3;A Path! A Path!;291
16.4;Aggregated Assault;292
16.5;Life’s a Batch;300
16.6;The Nils Are Alive;302
16.7;Handling the Unhandled;302
16.8;Summary;304
17;NSPredicate;305
17.1;Creating a Predicate;306
17.2;Fuel Filters;308
17.3;Format Specifiers;309
17.4;Hello Operator, Give Me Number 9;311
17.5;SELF Sufficient;314
17.6;String Operations;315
17.7;Like, Fer Sure;316
17.8;That’s All, Folks;316
18;Coming to Objective-C from Other Languages;317
18.1;Coming from C;318
18.2;Coming from C++;319
18.3;Coming from Java;324
18.4;Coming from BASIC;326
18.5;Coming from Scripting Languages;326
18.6;Summary;327
19;Index;328




