Muutke küpsiste eelistusi

Objective-C Phrasebook 2nd edition [Pehme köide]

  • Formaat: Paperback / softback, 384 pages, kõrgus x laius x paksus: 180x116x22 mm, kaal: 304 g
  • Ilmumisaeg: 19-Oct-2011
  • Kirjastus: Addison-Wesley Educational Publishers Inc
  • ISBN-10: 0321813758
  • ISBN-13: 9780321813756
  • Pehme köide
  • Hind: 35,64 €*
  • * saadame teile pakkumise kasutatud raamatule, mille hind võib erineda kodulehel olevast hinnast
  • See raamat on trükist otsas, kuid me saadame teile pakkumise kasutatud raamatule.
  • Kogus:
  • Lisa ostukorvi
  • Tasuta tarne
  • Lisa soovinimekirja
  • Formaat: Paperback / softback, 384 pages, kõrgus x laius x paksus: 180x116x22 mm, kaal: 304 g
  • Ilmumisaeg: 19-Oct-2011
  • Kirjastus: Addison-Wesley Educational Publishers Inc
  • ISBN-10: 0321813758
  • ISBN-13: 9780321813756
Objective-C Phrasebook, Second Edition





Updated for ARC, OS X 10.7, and iOS 5

  

Objective-C Phrasebook gives you the code phrases you need to quickly and effectively complete your programming projects with Objective-C.

 

The second edition of Objective-C Phrasebook has been updated for the new version of Objective-C supported by Apples LLVM compiler 3.0 on OS X 10.7 and iOS 5, and includes new coverage of ARC and other Objective-C features introduced with recent versions of Xcode.

 

Concise and Accessible

Easy to carry and easy to uselets you ditch all those bulky books for one portable pocket guide

Flexible and Functional

Packed with more than 100 customizable code snippetsso you can readily create solid Objective-C code in just about any situation

 

Register your book at informit.com/register for convenient access to downloads, updates, and corrections as they become available.
Introduction xiv
1 The Objective-C Philosophy
1(18)
Understanding the Object Model
2(2)
A Tale of Two Type Systems
4(1)
C Is Objective-C
5(2)
The Language and the Library
7(2)
The History of Objective-C
9(4)
Cross-Platform Support
13(2)
Compiling Objective-C Programs
15(4)
2 An Objective-C Primer
19(44)
Declaring Objective-C Types
20(4)
Sending Messages
24(4)
Understanding Selectors
28(3)
Declaring Classes
31(5)
Using Protocols
36(2)
Adding Methods to a Class
38(4)
Using Informal Protocols
42(1)
Synthesizing Methods with Declared Properties
43(6)
Understanding self, _cmd, super
49(3)
Understanding the isa Pointer
52(3)
Initializing Classes
55(3)
Reading Type Encodings
58(2)
Using Blocks
60(3)
3 Memory Management
63(32)
Retaining and Releasing
64(2)
Assigning to Instance Variables
66(1)
Automatic Reference Counting
67(3)
Returning Objects via Pointer Arguments
70(3)
Avoiding Retain Cycles
73(2)
Migrating to ARC
75(3)
Autorelease Pools
78(3)
Using Autoreleased Constructors
81(1)
Autoreleasing Objects in Accessors
82(1)
Supporting Automatic Garbage Collection
83(2)
Interoperating with C
85(3)
Understanding Object Destruction
88(2)
Using Weak References
90(3)
Allocating Scanned Memory
93(2)
4 Common Objective-C Patterns
95(24)
Supporting Two-Stage Creation
96(2)
Copying Objects
98(2)
Archiving Objects
100(4)
Creating Designated Initalizers
104(3)
Enforcing the Singleton Pattern
107(2)
Delegation
109(2)
Providing Facades
111(2)
Creating Class Clusters
113(3)
Using Run Loops
116(3)
5 Numbers
119(14)
Storing Numbers in Collections
121(4)
Performing Decimal Arithmetic
125(3)
Converting Between Strings and Numbers
128(2)
Reading Numbers from Strings
130(3)
6 Manipulating Strings
133(26)
Creating Constant Strings
134(1)
Comparing Strings
135(4)
Processing a String One Character at a Time
139(3)
Converting String Encodings
142(3)
Trimming Strings
145(1)
Splitting Strings
146(2)
Copying Strings
148(2)
Creating Strings from Templates
150(4)
Matching Patterns in Strings
154(2)
Storing Rich Text
156(3)
7 Working with Collections
159(24)
Using Arrays
161(2)
Manipulating Indexes
163(2)
Storing Unordered Groups of Objects
165(2)
Creating a Dictionary
167(2)
Iterating Over a Collection
169(4)
Finding an Object in a Collection
173(3)
Subclassing Collections
176(3)
Storing Objects in C++ Collections
179(4)
8 Dates and Times
183(12)
Finding the Current Date
184(2)
Converting Dates for Display
186(3)
Calculating Elapsed Time
189(2)
Parsing Dates from Strings
191(1)
Receiving Timer Events
192(3)
9 Working with Property Lists
195(18)
Storing Collections in Property Lists
196(3)
Reading Data from Property Lists
199(3)
Converting Property List Formats
202(2)
Using JSON
204(2)
Storing User Defaults
206(4)
Storing Arbitrary Objects in User Defaults
210(3)
10 Interacting with the Environment
213(10)
Getting Environment Variables
214(2)
Parsing Command-Line Arguments
216(2)
Accessing the User's Locale
218(1)
Supporting Sudden Termination
219(4)
11 Key-Value Coding
223(14)
Accessing Values by Key
224(1)
Ensuring KVC Compliance
225(4)
Understanding Key Paths
229(2)
Observing Keys
231(2)
Ensuring KVO Compliance
233(4)
12 Handling Errors
237(18)
Runtime Differences for Exceptions
238(4)
Throwing and Catching Exceptions
242(2)
Using Exception Objects
244(2)
Using the Unified Exception Model
246(1)
Managing Memory with Exceptions
247(3)
Passing Error Delegates
250(2)
Returning Error Values
252(1)
Using NSError
253(2)
13 Accessing Directories and Files
255(18)
Reading a File
256(2)
Moving and Copying Files
258(2)
Getting File Attributes
260(2)
Manipulating Paths
262(2)
Determining if a File or Directory Exists
264(2)
Working with Bundles
266(3)
Finding Files in Svstem Locations
269(4)
14 Threads
273(14)
Creating Threads
274(1)
Controlling Thread Priority
275(3)
Synchronizing Threads
278(2)
Storing Thread-Specific Data
280(3)
Waiting for a Condition
283(4)
15 Blocks and Grand Central
287(14)
Binding Variables to Blocks
288(5)
Managing Memory with Blocks
293(3)
Performing Actions in the Background
296(2)
Creating Custom Work Queues
298(3)
16 Notifications
301(10)
Requesting Notifications
302(2)
Sending Notifications
304(1)
Enqueuing Notifications
305(2)
Sending Notifications Between Applications
307(4)
17 Network Access
311(16)
Wrapping C Sockets
312(2)
Connecting to Servers
314(3)
Sharing Objects Over a Network
317(3)
Finding Network Peers
320(3)
Loading Data from URLs
323(4)
18 Debugging Objective-C
327(12)
Inspecting Objects
328(2)
Recognizing Memory Problems
330(3)
Watching Exceptions
333(2)
Asserting Expectations
335(2)
Logging Debug Messages
337(2)
19 The Objective-C Runtime
339(20)
Sending Messages by Name
340(2)
Finding Classes by Name
342(1)
Testing If an Object Understands a Method
343(3)
Forwarding Messages
346(3)
Finding Classes
349(2)
Inspecting Classes
351(2)
Creating New Classes
353(3)
Adding New Instance Variables
356(3)
Index 359
David Chisnall is an active contributor to the GNUstep project, which provides an open source implementation of the Cocoa APIs, and cofounded the Étoilé project. He has created a new Objective-C runtime library, worked on Objective-C support in the clang compiler, and published papers on Objective-C.