My Account Log in

1 option

Sams teach yourself Objective-C in 24 hours

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Feiler, Jesse, Author.
Series:
Sams Teach Yourself Ser.
Language:
English
Subjects (All):
iPhone OS.
iOS (Electronic resource).
Objective-C (Computer program language)--Programming.
Objective-C (Computer program language).
Object-oriented programming (Computer science).
Macintosh (Computer).
Physical Description:
1 online resource (xii, 390 p.) : ill.
Edition:
1st edition
Other Title:
Objective-C in twenty-four hours
Place of Publication:
[Place of publication not identified] Sams Pub 2012
Language Note:
English
System Details:
text file
Summary:
In just 24 sessions of one hour or less, you can master the Objective-C language, and start using it to write powerful native applications for both Macs and iOS devices! Using this book’s straightforward, step-by-step approach, you’ll get comfortable with Objective-C’s unique capabilities… make the most of its powerful implementation of objects and messaging…work effectively with design patterns, collections, blocks, threading, and a whole lot more. Every lesson builds on what you’ve already learned, giving you a rock-solid foundation for real-world success! Step-by-Step Instructions carefully walk you through the most common Objective-C development tasks. Quizzes and Exercises at the end of each chapter help you test your knowledge. By the Way notes present information related to the discussion. Did You Know? tips offer advice or show you easier ways to perform tasks. Watch Out! cautions alert you to possible problems and give you advice on how to avoid them. Printed in full color—figures and code appear as they do in Xcode Use Xcode to write Objective-C software more quickly and efficiently Master Objective-C’s object-oriented features and techniques Efficiently organize program files and projects Make the most of Objective-C’s powerful messaging capabilities Declare classes, instance variables, properties, methods, and actions Leverage building block patterns to write more powerful code Work with mutable and immutable data types Organize data with collections, including dictionaries and sets Manage memory the modern way, with Automatic Reference Counting (ARC) Expand and extend classes with protocols, delegates, categories, and extensions Apply recent language enhancements such as Associative References and Fast Enumeration Create and work with portable, anonymous code blocks Manage queues and threading with Grand Central Dispatch
Contents:
Intro
About This eBook
Title Page
Copyright Page
Contents at a Glance
Table of Contents
About the Author
Acknowledgments
We Want to Hear from You!
Reader Services
Introduction
Who Should Read This Book
What This Book Covers
Downloading the Sample Files
How This Book Is Organized
Part I: Getting Started with Objective-C
Hour 1. Overview of the Developer Program
Introducing Objective-C
Enrolling as an Apple Developer
Choosing Your Program
Setting Up the Development Environment
Summary
Q&amp
A
Workshop
Hour 2. Object-Oriented Programming with Objective-C
Object-Oriented Programming in the Objective-C World
Creating C with Objects
Managing Inheritance in the Objective-C World
Hour 3. Using Object-Oriented Features in Objective-C
Communicating to Methods with Messages
Allocating and Initializing Objects
Hour 4. Using Xcode 5
Getting to Work with Xcode
Keeping Track of Your Source Code
Using a Remote Repository
Hour 5. Using Compiler Directives
Exploring Your Projects
Working with Compiler Directives
Using Objective-C Compiler Directives
Part II: Working with the Objective-C Basics
Hour 6. Exploring Messaging and a Testbed App
Setting Up the Testbed Apps
Adding a Text Field and Connecting It to Your Code
Sending a Message to the Text Field
Reviewing the Message Syntax
Hour 7. Declaring a Class in an Interface File
Letting Xcode Do the Work
Exploring Class Hierarchies
Declaring Classes
Hour 8. Declaring Instance Variables in an Interface File
Declaring Instance Variables and Properties.
Using the Class
Creating an Instance Variable for CurrencyConverter with id
Creating an Instance Variable for CurrencyConverter with the Class Name
Creating an Instance Variable for CurrencyConverter with a Superclass Name
Managing Instance Variable Visibility
Hour 9. Declaring Properties in an Interface File
Comparing Interface Variables and Properties
Using Declared Properties
Using Attributes
Implementing Properties
Hour 10. Declaring Methods in an Interface File
Working with Methods in a Class
Reviewing Method Syntax
Hour 11. Declaring Actions in an Interface File
Introducing Actions
Comparing Actions in OS X and iOS
Hour 12. Routing Messages with Selectors
Getting Inside Objective-C Messages
Getting Inside the Objective-C Runtime
Working with SEL and @selector ()
Using performSelector
Using NSInvocation
Testing Whether an Instance Can Respond to a Selector
Hour 13. Building on the Foundation
Exploring the Foundation Framework
Foundation Classes
Foundation Paradigms and Policies
Hour 14. Defining a Class in an Implementation File
Working with a New Project
Creating a New App
Implementing a Method
Expanding the Class with init Methods
Hour 15. Organizing Data with Collections
Collecting Objects
Getting Familiar with Property Lists
Comparing the Collection Classes
Creating a Collection
Using Objective-C Literal Syntax
Enumerating a Collection
Testing Membership in a Collection
Accessing an Object in a Collection
Workshop.
Hour 16. Managing Memory and Runtime Objects
Managing Objects in Memory
Managing Reference Counts Manually
Managing Reference Counts with ARC
Variable Qualifiers
Autoreleasing Variables
Part III: Expanding and Extending Classes
Hour 17. Extending a Class with Protocols and Delegates
Exploring the Pros and Cons of Subclassing
Introducing the Example
Working with Protocols
Working with Delegates
Putting Protocols and Delegates Together
Looking Deeper Inside Protocols
Hour 18. Extending a Class with Categories and Extensions
Comparing Categories and Protocols
Comparing Categories with Subclasses
Working with Categories
Using Class Extensions
Working with Informal Protocols
Hour 19. Using Associative References and Fast Enumeration
Catching Up on Objective-C 2.0 Time-Saving Features
Extending Classes by Adding Instance Variables (Sort of)
Using Fast Enumeration
Hour 20. Working with Blocks
Revisiting Blocks
Looking at Callbacks
Introducing Blocks
Exploring Blocks in Cocoa
Looking Deeper into Cocoa Blocks and Memory
Part IV: Beyond the Basics
Hour 21. Handling Exceptions and Errors
Rethinking Exceptions and Errors
Introducing the Exception and Error Classes
Identifying an Exception
Throwing an Exception
Catching an Exception
Hour 22. Grand Central Dispatch: Using Queues and Threading
Getting Started with Concurrency
Introducing Queues
Using Dispatch Queues
Hour 23. Working with the Debugger
Logging Information
Using Console Logs
Using Smart Breakpoints
Q&amp.
A
Hour 24. Using Xcode Debug Gauges for Analysis
Putting Debug Gauges in Perspective
Using Instruments
Part V: Appendixes
Appendix A. C Syntax Summary
Data Types
Control Structures
Appendix B. Apps, Packages, and Bundles
Looking Inside a Project Bundle
lproj Files
Asset Catalogs
plist Files
Precompiled Header Files (.pch)
Appendix C. Archiving and Packaging Apps for Development and Testing
Archiving
Index.
Notes:
Bibliographic Level Mode of Issuance: Monograph
Description based on publisher supplied metadata and other sources.
ISBN:
9780672335891
0672335891
OCLC:
794596671

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account