Learning Cocoa with Objective-C. Developing for the Mac and iOS App Stores. 3rd Edition - Helion
ISBN: 978-14-493-6341-3
stron: 398, Format: ebook
Data wydania: 2012-12-24
Księgarnia: Helion
Cena książki: 118,15 zł (poprzednio: 137,38 zł)
Oszczędzasz: 14% (-19,23 zł)
Get up to speed on Cocoa and Objective-C, and start developing applications on the iOS and OS X platforms. If you don’t have experience with Apple’s developer tools, no problem! From object-oriented programming to storing app data in iCloud, this book covers everything you need to build apps for the iPhone, iPad, and Mac.
You’ll learn how to work with the Xcode IDE, Objective-C’s Foundation library, and other developer tools such as Event Kit framework and Core Animation. Along the way, you’ll build example projects, including a simple Objective-C application, a custom view, a simple video player application, and an app that displays calendar events for the user.
- Learn the application life cycle on OS X and iOS
- Work with the user-interface system in Cocoa and Cocoa Touch
- Use AV Foundation to display video and audio
- Build apps that let users create, edit, and work with documents
- Store data locally with the file system, or on the network with iCloud
- Display lists or collections of data with table views and collection views
- Interact with the outside world with Core Location and Core Motion
- Use blocks and operation queues for multiprocessing
Osoby które kupowały "Learning Cocoa with Objective-C. Developing for the Mac and iOS App Stores. 3rd Edition", wybierały także:
- Zen Steve'a Jobsa 29,67 zł, (8,90 zł -70%)
- ASP.NET MVC. Kompletny przewodnik dla programistów interaktywnych aplikacji internetowych w Visual Studio 86,77 zł, (26,90 zł -69%)
- jQuery, jQuery UI oraz jQuery Mobile. Receptury 57,74 zł, (17,90 zł -69%)
- Scratch. Komiksowa przygoda z programowaniem 36,06 zł, (11,90 zł -67%)
- Baltie. Kurs video. Poziom pierwszy. Elementarz programowania w języku wizualnym 59,00 zł, (26,55 zł -55%)
Spis treści
Learning Cocoa with Objective-C. Developing for the Mac and iOS App Stores. 3rd Edition eBook -- spis treści
- Learning Cocoa with Objective-C
- A Note Regarding Supplemental Files
- Preface
- Audience
- Organization of This Book
- Conventions Used in This Book
- Using Code Examples
- Safari Books Online
- How to Contact Us
- Acknowledgments
- 1. Cocoa Development Tools
- The Mac and iOS Developer Programs
- Registering for a Developer Program
- Downloading Xcode from Apple Developer
- Getting Around in Xcode
- The Xcode Interface
- The editor
- The toolbar
- The navigator
- Utilities
- The debug area
- The Xcode Interface
- Developing a Simple Objective-C Application
- Designing the Interface
- Connecting the Code
- Using the iOS Simulator
- The Mac and iOS Developer Programs
- 2. Object-Oriented Programming with Objective-C
- Object-Oriented Programming
- Objects
- Inheritance
- Interfaces and Implementations
- Methods
- Messages
- Properties
- Protocols
- Class Extensions
- Memory Management
- Reference Counting
- Automatic Reference Counting
- Object Graphs in Objective-C
- The NSObject Life Cycle
- Allocation and Initialization
- Retain and Release
- Finalization and Deallocation
- Object-Oriented Programming
- 3. Foundation
- Mutable and Immutable Objects
- Strings
- Creating Strings
- Working with Strings
- Capitalization and working with paths
- Finding substrings
- Comparing Strings
- Searching Strings
- Arrays
- Fast Enumeration
- Mutable Arrays
- Dictionaries
- NSValue and NSNumber
- Data
- Loading Data from Files and URLs
- Serialization and Deserialization
- Design Patterns in Cocoa
- Model-View-Controller
- Delegation
- Key-Value Observing
- 4. Applications on OS X and iOS
- What Is an Application?
- Applications, Frameworks, Utilities, and More
- What Are Apps Composed Of?
- Using NSBundle to Find Resources in Applications
- The Application Lifecycle
- OS X Applications
- iOS Applications
- Multitasking on iOS
- The Application Sandbox
- Application Restrictions
- iOS application restrictions
- Mac application restrictions
- Private APIs
- Application Restrictions
- What Is an Application?
- 5. Graphical User Interfaces
- Interfaces in OS X and iOS
- MVC and Application Design
- Nib Files
- Structure of a Nib File
- Outlets and Actions
- How Nib Files Are Loaded
- Constructing an Interface
- Guidelines and Constraints
- Building an App with Nibs and Constraints
- Core Animation
- Layers
- Animations
- Animations on OS X
- Animations on iOS
- 6. Blocks and Operation Quotes
- Blocks
- Block Syntax
- Block Life Cycles
- Methods with Block Parameters
- Blocks and Memory Management
- Modifying Local Variables from Inside Blocks with __block
- Concurrency with Operation Queues
- Operation Queues and NSOperation
- Performing Work on Operation Queues
- Putting It All Together
- Blocks
- 7. Drawing Graphics in Views
- How Drawing Works
- The Pixel Grid
- Retina Displays
- Pixels and Screen Points
- Drawing in Views
- Frame Rectangles
- Bounds Rectangles
- Building a Custom View
- Creating the Project
- Filling with a Solid Color
- Working with Paths
- Creating Custom Paths
- Multiple Subpaths
- Shadows
- Saving and restoring graphics contexts
- Drawing a shadow
- Drawing shadows on iOS
- Gradients
- Drawing gradients on iOS
- Transforms
- 8. Audio and Video
- AV Foundation
- Playing Video with AVPlayer
- AVPlayerLayer
- Putting It Together
- Playing Sound with AVAudioPlayer
- Working with the Photo Library
- Capturing Photos and Video from the Camera
- Building a Photo Application
- The Photo Library
- 9. Model Objects and Data Storage
- Key-Value Coding
- Key-Value Observing
- Registering for Change Notifications
- Notifying Observers of Changes
- Notifications with NSNotification
- Preferences
- Registering Default Preferences
- Accessing Preferences
- Setting Preferences
- Working with the Filesystem
- Using NSFileManager
- Creating directories
- Creating files
- Removing files
- Moving and copying files
- File Storage Locations
- Using NSFileManager
- Working with the Sandbox
- Enabling Sandboxing
- Open and Save Panels
- Security-Scoped Bookmarks
- 10. Cocoa Bindings
- Binding Views to Models
- A Single Bindings App
- Binding to Controllers
- Array and Object Controllers
- A More Complex Bindings App
- 11. Table Views and Collection Views
- Data Sources and Delegates
- Table Views
- UITableView on iOS
- Sections and Rows
- Table View Controllers
- Table View Cells
- Cell reuse
- Anatomy of a UITableViewCell
- Preparing table views in Interface Builder
- Analyzing tableView:cellForRowAtIndexPath:
- Responding to actions
- Implementing a Table View
- NSTableView on OS X
- Sorting a Table View
- NSTableView with Bindings
- Collection Views
- UICollectionView on iOS
- 12. Document-Based Applications
- The NSDocument and UIDocument Classes
- Document Objects in MVC
- Kinds of Documents
- The Role of Documents
- Document-Based Applications on OS X
- Autosaving and Versions
- Representing Documents with NSDocument
- Saving Simple Data
- Saving More Complex Data
- Document-Based Applications on iOS
- Representing Documents with UIDocument
- 13. Networking
- Connections
- NSURL
- NSURLRequest
- NSURLConnection
- NSURLResponse and NSHTTPURLResponse
- Building a Networked Application
- Discovering Nearby Services
- Browsing for Shared iTunes Libraries
- Connections
- 14. Working with the Real World
- Working with Location
- Location Hardware
- GPS
- WiFi base station lookups
- Cell tower lookups
- The Core Location Framework
- Working with Core Location
- Location Hardware
- Geocoding
- Locations and Privacy
- Device Motion
- Working with Core Motion
- Printing Documents
- Printing on OS X
- Printing on iOS
- Working with Location
- 15. Event Kit
- Understanding Events
- Accessing the Event Store
- Accessing Calendars
- Accessing Events
- Working with Events
- Building an Events Application
- User Privacy
- Understanding Events
- 16. Instruments and the Debugger
- Getting Started with Instruments
- The Instruments Interface
- Observing Data
- Adding Instruments from the Library
- Fixing Problems with Instruments
- Retain Cycles and Leaks
- Using the Debugger
- Setting Breakpoints
- Controlling program flow
- Custom breakpoints
- Exception and symbolic breakpoints
- Inspecting Memory Contents
- Working with the Debugger Console
- Setting Breakpoints
- Getting Started with Instruments
- 17. Sharing and Notifications
- Sharing
- Sharing on iOS
- Sharing on OS X
- Notifications
- Push Notifications
- What happens when a push arrives
- Sending Push Notifications
- Setting Up to Receive Push Notifications
- Receiving Push Notifications
- Local Notifications
- Push Notifications
- Sharing
- 18. Nonstandard Apps
- Command-Line Tools
- Preference Panes
- How Preference Panes Work
- Preference Domains
- Building a Sample Preference Pane
- Status Bar Items
- Building a Status Bar App
- 19. Working with Text
- Internationalization and Localization
- Strings Files
- Creating a Sample Localized Application
- Formatting Data with NSFormatter
- Formatting Dates with NSDateFormatter
- Detecting Data with NSDataDetector
- Testing a Data Detector
- Internationalization and Localization
- 20. iCloud
- What iCloud Stores
- Setting Up for iCloud
- Testing Whether iCloud Works
- Storing Settings
- iCloud Storage
- Index
- About the Authors
- Colophon
- Copyright