Learn Objective-C on the Mac for iOS and OS X
Learn to write apps for some of today's hottest technologies, including the iPhone and iPad (using iOS), as well as the Mac (using OS X). It starts with Objective-C, the base language on which the native iOS software development kit (SDK) and the OS X are based. Learn Objective-C on the Mac: Fo...
Autor principal: | |
---|---|
Otros Autores: | , |
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
[Berkeley, Calif.] : New York :
Apress ; Distributed to the book trade worldwide by Springer Science+Business Media
c2012.
|
Edición: | 2nd ed |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009628234506719 |
Tabla de Contenidos:
- Title page; Copyright page; Contents at a glance; Table of contents; Objective-C Objects; Foreword; About the Authors; About the Technical Reviewer; Acknowledgments; Working with This Book; Chapter 1: Hello; Before You Start; Where the Future Was Made Yesterday; What's Coming Up; Getting Ready; Summary; Chapter 2: Extensions to C; The Simplest Objective-C Program; Building Hello Objective-C; Deconstructing Hello Objective-C; That Wacky #import Thing; Introducing Frameworks; NSLog() and @""strings""; The NS Prefix: A Prescription Against Name Collisions; NSString: Where it's @
- Are You the Boolean Type?Mighty BOOL in Action; The First Function; The Second Function; The Comparison Itself; Summary; Chapter 3: Introduction to Object-Oriented Programming; It's All Indirection; Variables and Indirection; Indirection Through Filenames; Using Indirection in Object-Oriented Programming; Procedural Programming; The Shape of Things to Draw; The Part That Does the Work; Implementing Object Orientation; Time Out for Terminology; OOP in Objective-C; The @interface Section; The @implementation Section; Instantiating Objects; Extending Shapes-Object; Summary
- Chapter 4: InheritanceWhy Use Inheritance?; Inheritance Syntax; Time Out for Terminology; How Inheritance Works; Method Dispatching; Instance Variables; Overriding Methods; I Feel Super!; Summary; Chapter 5: Composition; What Is Composition?; Car Talk; Customizing for NSLog(); Accessor Methods; Setting the Engine; Setting the Tires; Tracking Changes to Car; Extending CarParts; Composition or Inheritance?; Summary; Chapter 6: Source File Organization; Split Interface and Implementation; Making New Files in Xcode; Breaking Apart the Car; Using Cross-File Dependencies
- Recompiling on a Need-to-Know BasisMaking the Car Go; Importation and Inheritance; Summary; Chapter 7: More About Xcode; One Window to Rule Them All; Changing the Company Name; Using Editor Tips and Tricks; Writing Your Code with a Little Help from Xcode; Indentation (Pretty Printing); You Complete Me; Kissing Parentheses; Mass Edits; Navigating Around in Your Code; emacs is Not a Mac; Open Sesame Seed!; Focus Your Energy; The Navigation Bar Is Open; Getting Information; A Little Help, Please; Is There a Documentor in the House?; Debugging; Crush Puny Bugs; Xcode's Debugger; Subtle Symbolism
- Let's Debug!Taking a Look-See; Cheat Sheet; Summary; Chapter 8: A Quick Tour of the Foundation Kit; Solid Foundation; Using the Project Boilerplate Code; Some Useful Types; Home on the Range; Geometric Types; Stringing Us Along; Build That String; Class Methods; Size Matters; Comparative Politics; Insensitivity Training; Is It Inside?; Mutability; Collection Agency; NSArray; Mutable Arrays; Enumeration Nation; Fast Enumeration; NSDictionary; Use but Don't Extend; Family Values; NSNumber; NSValue; NSNull; Example: Looking for Files; Behind the Sign That Says "Beware of the Leopard"; Summary
- Chapter 9: Memory Management