Muutke küpsiste eelistusi

E-raamat: Learning Cocoa with Objective-C: Developing for the Mac and iOS App Stores

  • Formaat: 388 pages
  • Ilmumisaeg: 19-Feb-2014
  • Kirjastus: O'Reilly Media
  • Keel: eng
  • ISBN-13: 9781491901786
Teised raamatud teemal:
  • Formaat - EPUB+DRM
  • Hind: 26,90 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Lisa ostukorvi
  • Lisa soovinimekirja
  • See e-raamat on mõeldud ainult isiklikuks kasutamiseks. E-raamatuid ei saa tagastada.
  • Formaat: 388 pages
  • Ilmumisaeg: 19-Feb-2014
  • Kirjastus: O'Reilly Media
  • Keel: eng
  • ISBN-13: 9781491901786
Teised raamatud teemal:

DRM piirangud

  • Kopeerimine (copy/paste):

    ei ole lubatud

  • Printimine:

    ei ole lubatud

  • Kasutamine:

    Digitaalõiguste kaitse (DRM)
    Kirjastus on väljastanud selle e-raamatu krüpteeritud kujul, mis tähendab, et selle lugemiseks peate installeerima spetsiaalse tarkvara. Samuti peate looma endale  Adobe ID Rohkem infot siin. E-raamatut saab lugeda 1 kasutaja ning alla laadida kuni 6'de seadmesse (kõik autoriseeritud sama Adobe ID-ga).

    Vajalik tarkvara
    Mobiilsetes seadmetes (telefon või tahvelarvuti) lugemiseks peate installeerima selle tasuta rakenduse: PocketBook Reader (iOS / Android)

    PC või Mac seadmes lugemiseks peate installima Adobe Digital Editionsi (Seeon tasuta rakendus spetsiaalselt e-raamatute lugemiseks. Seda ei tohi segamini ajada Adober Reader'iga, mis tõenäoliselt on juba teie arvutisse installeeritud )

    Seda e-raamatut ei saa lugeda Amazon Kindle's. 

Explains how to develop software for iOS and OS X in the Cocoa, Cocoa Touch, and Objective-C programming environments.

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, the fourth edition of 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 lifecycle 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
Preface xi
1 Cocoa Development Tools 1(20)
The Mac and iOS Developer Programs
1(2)
Registering for a Developer Program
2(1)
Downloading Xcode from Apple Developer
3(1)
Getting Around in Xcode
3(11)
Creating Your First Cocoa Project
5(2)
The Xcode Interface
7(7)
Developing a Simple Objective-C Application
14(3)
Designing the Interface
14(1)
Connecting the Code
15(2)
Using the iOS Simulator
17(4)
2 Object-Oriented Programming with Objective-C 21(16)
Object-Oriented Programming
21(12)
Objects
22(1)
Inheritance
23(1)
Interfaces and Implementations
23(1)
Methods
24(1)
Messages
25(1)
Properties
26(3)
Protocols
29(1)
Class Extensions
30(1)
Modules
31(2)
Memory Management
33(2)
Reference Counting
33(1)
Automatic Reference Counting
33(1)
Object Graphs in Objective-C
34(1)
The NSObject Lifecycle
35(2)
Allocation and Initialization
35(1)
Retain and Release
36(1)
Finalization and Deallocation
36(1)
3 Foundation 37(22)
Mutable and Immutable Objects
37(1)
Strings
38(5)
Creating Strings
39(1)
Working with Strings
39(3)
Comparing Strings
42(1)
Searching Strings
43(1)
Arrays
43(5)
Fast Enumeration
46(1)
Mutable Arrays
46(2)
Dictionaries
48(1)
NSValue and NSNumber
49(1)
Data
50(4)
Loading Data from Files and URLs
50(1)
Serialization and Deserialization
51(3)
Design Patterns in Cocoa
54(5)
Model-View-Controller
54(2)
Delegation
56(1)
Key-Value Observing
56(3)
4 Applications on OS X and iOS 59(16)
What Is an Application?
59(5)
Applications, Frameworks, Utilities, and More
60(1)
What Are Apps Composed Of?
61(2)
Using NSBundle to Find Resources in Applications
63(1)
The Application Lifecycle
64(7)
OS X Applications
64(2)
iOS Applications
66(5)
The Application Sandbox
71(4)
Application Restrictions
71(4)
5 Graphical User Interfaces 75(20)
Interfaces in OS X and iOS
75(1)
MVC and Application Design
76(1)
Nib Files
76(7)
Structure of a Nib File
77(4)
Storyboards
81(1)
Outlets and Actions
81(1)
How Nib Files Are Loaded
82(1)
Constructing an Interface
83(2)
Guidelines and Constraints
83(2)
Building an App with Nibs and Constraints
85(2)
UI Dynamics
87(3)
UI and Gravity
88(1)
Snapping UI
89(1)
Designing Interfaces for Both iOS 6 and 7
90(1)
Core Animation
91(4)
Layers
92(1)
Animations
93(2)
6 Blocks and Operation Queues 95(14)
Blocks
95(6)
Block Syntax
96(1)
Block Lifecycles
97(2)
Methods with Block Parameters
99(1)
Blocks and Memory Management
100(1)
Modifying Local Variables from Inside Blocks with block
100(1)
Concurrency with Operation Queues
101(3)
Operation Queues and NSOperation
102(1)
Performing Work on Operation Queues
102(2)
Putting It All Together
104(5)
7 Drawing Graphics in Views 109(28)
How Drawing Works
109(2)
The Pixel Grid
111(3)
Retina Displays
111(2)
Pixels and Screen Points
113(1)
Drawing in Views
114(2)
Frame Rectangles
114(1)
Bounds Rectangles
115(1)
Building a Custom View
116(17)
Creating the Project
116(1)
Filling with a Solid Color
117(1)
Working with Paths
118(2)
Creating Custom Paths
120(2)
Multiple Subpaths
122(2)
Shadows
124(4)
Gradients
128(3)
Transforms
131(2)
SpriteKit
133(4)
8 Audio and Video 137(18)
AV Foundation
137(1)
Playing Video with AVPlayer
138(8)
AVPlayerLayer
139(1)
Putting It Together
139(4)
AVPlayerView
143(3)
Playing Sound with AVAudioPlayer
146(1)
Speech Synthesis
147(1)
Working with the Photo Library
148(7)
Capturing Photos and Video from the Camera
148(2)
Building a Photo Application
150(2)
The Photo Library
152(3)
9 Model Objects and Data Storage 155(18)
Key-Value Coding
156(2)
Key-Value Observing
158(2)
Registering for Change Notifications
158(2)
Notifying Observers of Changes
160(1)
Notifications with NSNotification
160(1)
Preferences
161(3)
Registering Default Preferences
162(1)
Accessing Preferences
163(1)
Setting Preferences
164(1)
Working with the Filesystem
164(5)
Using NSFileManager
166(3)
File Storage Locations
169(1)
Working with the Sandbox
169(4)
Enabling Sandboxing
169(1)
Open and Save Panels
170(1)
Security-Scoped Bookmarks
171(2)
10 Cocoa Bindings 173(14)
Binding Views to Models
173(1)
A Single Bindings App
174(3)
Binding to Controllers
177(1)
Array and Object Controllers
178(1)
A More Complex Bindings App
179(8)
11 Table Views and Collection Views 187(20)
Data Sources and Delegates
187(1)
Table Views
188(1)
UITableView on iOS
188(8)
Sections and Rows
189(1)
Table View Controllers
189(1)
Table View Cells
190(3)
Implementing a Table View
193(3)
NSTableView on OS X
196(6)
Sorting a Table View
200(1)
NSTableView with Bindings
201(1)
Collection Views
202(5)
UICollectionView on iOS
202(5)
12 Document-Based Applications 207(20)
The NSDocument and UlDocument Classes
208(1)
Document Objects in MVC
208(1)
Kinds of Documents
208(1)
The Role of Documents
209(1)
Document Based Applications on OS X
210(8)
Autosaving and Versions
210(1)
Representing Documents with NSDocument
211(1)
Saving Simple Data
212(2)
Saving More Complex Data
214(4)
Document-Based Applications on iOS
218(9)
13 Networking 227(14)
Connections
227(4)
NSURL
228(1)
NSURLRequest
229(1)
NSURLConnection
230(1)
NSURLSession
230(1)
NSURLResponse and NSHTTPURLResponse
231(1)
Building a Networked Application
231(2)
Bonjour Service Discovery
233(3)
Browsing for Shared iTunes Libraries
234(2)
Multipeer Connectivity
236(5)
14 Working with the Real World 241(28)
Working with Location
241(7)
Location Hardware
242(1)
The Core Location Framework
243(2)
Working with Core Location
245(3)
Geocoding
248(3)
Region Monitoring and iBeacons
251(1)
Locations and Privacy
252(4)
Maps
253(1)
Using Maps
253(1)
Annotating Maps
254(1)
Maps and Overlays
255(1)
Device Motion
256(5)
Working with Core Motion
257(4)
Printing Documents
261(3)
Printing on OS X
262(1)
Printing on iOS
263(1)
Game Controllers
264(3)
App Nap
267(2)
15 Event Kit 269(12)
Understanding Events
269(3)
Accessing the Event Store
270(1)
Accessing Calendars
271(1)
Accessing Events
271(1)
Working with Events
272(1)
Building an Events Application
273(5)
User Privacy
278(3)
16 Instruments and the Debugger 281(20)
Getting Started with Instruments
282(4)
The Instruments Interface
282(2)
Observing Data
284(2)
Adding Instruments from the Library
286(1)
Fixing Problems with Instruments
286(6)
Retain Cycles and Leaks
292(3)
Using the Debugger
295(6)
Setting Breakpoints
295(4)
Inspecting Memory Contents
299(1)
Working with the Debugger Console
299(2)
17 Sharing and Notifications 301(14)
Sharing
301(6)
Sharing on iOS
304(2)
Sharing on OS X
306(1)
Notifications
307(8)
Push Notifications
307(1)
Sending Push Notifications
308(1)
Setting Up to Receive Push Notifications
309(2)
Receiving Push Notifications
311(2)
Local Notifications
313(2)
18 Nonstandard Apps 315(12)
Command-Line Tools
315(2)
Preference Panes
317(4)
How Preference Panes Work
317(1)
Preference Domains
318(1)
Building a Sample Preference Pane
319(2)
Status Bar Items
321(2)
Building a Status Bar App
321(2)
iOS Apps with Multiple Windows
323(4)
19 Working with Text 327(10)
Internationalization and Localization
327(3)
Strings Files
327(1)
Creating a Sample Localized Application
328(2)
Formatting Data with NSFormatter
330(3)
Detecting Data with NSDataDetector
333(2)
TextKit
335(2)
20 iCloud 337(16)
What iCloud Stores
337(1)
Setting Up for iCloud
338(2)
Testing Whether iCloud Works
340(1)
Storing Settings
340(5)
iCloud Storage
345(8)
Index 353
Paris Buttfield-Addison is a mobile app engineer, game designer and researcher with a passion for making technology simpler and as engaging as possible. He has written two books on game development and currently spends his time designing mobile products for millions upon millions of users while drinking too much coffee. Paris has coded for everything from Qt to 6502 assembly to iOS and thinks digital watches are a pretty neat idea. He claims he will soon have a PhD. Jon Manning is an iOS development guru, writer and teacher. Previously an author for the For Dummies series, he has written apps for millions of people and frequently finds himself accidentally teaching iOS development. Tim Nugent pretends to be a mobile app developer, game designer, PhD student, and now he even pretends to be an author. When he isn't busy avoiding being found out as a fraud, he spends most of his time designing and creating little apps and games he won't let anyone see. Tim spent a disproportionately long time writing this tiny little bio, most of which was spent trying to stick a witty sci-fi reference in, before he simply gave up. Tim can be found as @The_McJones on Twitter