
Learning Cocoa with Objective-C
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Content
- Cover
- Copyright
- Table of Contents
- Preface
- Audience
- Organization of This Book
- Conventions Used in This Book
- Using Code Examples
- Safari® Books Online
- How to Contact Us
- Acknowledgments
- Chapter 1. Cocoa Development Tools
- The Mac and iOS Developer Programs
- Registering for a Developer Program
- Downloading Xcode from Apple Developer
- Getting Around in Xcode
- Creating Your First Cocoa Project
- The Xcode Interface
- Developing a Simple Objective-C Application
- Designing the Interface
- Connecting the Code
- Using the iOS Simulator
- Chapter 2. Object-Oriented Programming with Objective-C
- Object-Oriented Programming
- Objects
- Inheritance
- Interfaces and Implementations
- Methods
- Messages
- Properties
- Protocols
- Class Extensions
- Modules
- Memory Management
- Reference Counting
- Automatic Reference Counting
- Object Graphs in Objective-C
- The NSObject Lifecycle
- Allocation and Initialization
- Retain and Release
- Finalization and Deallocation
- Chapter 3. Foundation
- Mutable and Immutable Objects
- Strings
- Creating Strings
- Working with Strings
- 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
- Chapter 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
- The Application Sandbox
- Application Restrictions
- Chapter 5. Graphical User Interfaces
- Interfaces in OS X and iOS
- MVC and Application Design
- Nib Files
- Structure of a Nib File
- Storyboards
- Outlets and Actions
- How Nib Files Are Loaded
- Constructing an Interface
- Guidelines and Constraints
- Building an App with Nibs and Constraints
- UI Dynamics
- UI and Gravity
- Snapping UI
- Designing Interfaces for Both iOS 6 and 7
- Core Animation
- Layers
- Animations
- Chapter 6. Blocks and Operation Queues
- Blocks
- Block Syntax
- Block Lifecycles
- 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
- Chapter 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
- Gradients
- Transforms
- SpriteKit
- Chapter 8. Audio and Video
- AV Foundation
- Playing Video with AVPlayer
- AVPlayerLayer
- Putting It Together
- AVPlayerView
- Playing Sound with AVAudioPlayer
- Speech Synthesis
- Working with the Photo Library
- Capturing Photos and Video from the Camera
- Building a Photo Application
- The Photo Library
- Chapter 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
- File Storage Locations
- Working with the Sandbox
- Enabling Sandboxing
- Open and Save Panels
- Security-Scoped Bookmarks
- Chapter 10. Cocoa Bindings
- Binding Views to Models
- A Single Bindings App
- Binding to Controllers
- Array and Object Controllers
- A More Complex Bindings App
- Chapter 11. Table Views and Collection Views
- Data Sources and Delegates
- Table Views
- UITableView on iOS
- Sections and Rows
- Table View Controllers
- Table View Cells
- Implementing a Table View
- NSTableView on OS X
- Sorting a Table View
- NSTableView with Bindings
- Collection Views
- UICollectionView on iOS
- Chapter 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
- Chapter 13. Networking
- Connections
- NSURL
- NSURLRequest
- NSURLConnection
- NSURLSession
- NSURLResponse and NSHTTPURLResponse
- Building a Networked Application
- Bonjour Service Discovery
- Browsing for Shared iTunes Libraries
- Multipeer Connectivity
- Chapter 14. Working with the Real World
- Working with Location
- Location Hardware
- The Core Location Framework
- Working with Core Location
- Geocoding
- Region Monitoring and iBeacons
- Locations and Privacy
- Maps
- Using Maps
- Annotating Maps
- Maps and Overlays
- Device Motion
- Working with Core Motion
- Printing Documents
- Printing on OS X
- Printing on iOS
- Game Controllers
- App Nap
- Chapter 15. Event Kit
- Understanding Events
- Accessing the Event Store
- Accessing Calendars
- Accessing Events
- Working with Events
- Building an Events Application
- User Privacy
- Chapter 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
- Inspecting Memory Contents
- Working with the Debugger Console
- Chapter 17. Sharing and Notifications
- Sharing
- Sharing on iOS
- Sharing on OS X
- Notifications
- Push Notifications
- Sending Push Notifications
- Setting Up to Receive Push Notifications
- Receiving Push Notifications
- Local Notifications
- Chapter 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
- iOS Apps with Multiple Windows
- Chapter 19. Working with Text
- Internationalization and Localization
- Strings Files
- Creating a Sample Localized Application
- Formatting Data with NSFormatter
- Detecting Data with NSDataDetector
- TextKit
- Chapter 20. iCloud
- What iCloud Stores
- Setting Up for iCloud
- Testing Whether iCloud Works
- Storing Settings
- iCloud Storage
- Index
- About the Authors
System requirements
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.