Objective-C Phrasebook by David Chisnall at Bookstore UAE
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Home > Computing and Information Technology > Computer programming / software engineering > Macintosh programming > Objective-C Phrasebook: (Developer's Library)
Objective-C Phrasebook: (Developer's Library)

Objective-C Phrasebook: (Developer's Library)


     0     
5
4
3
2
1



Out of Stock


Notify me when this book is in stock
X
About the Book

Objective-C Phrasebook gives you the code phrases you need to quickly and effectively complete your programming projects with Objective-C, on systems including iOS and Mac OS X.

 

Concise and Accessible

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

 

Flexible and Functional

Packed with more than 100 customizable code snippets–so you can readily code elegant Objective-C in just about any situation



Table of Contents:

Introduction xiv

1 The Objective-C Philosophy 1

Understanding the Object Model 2

A Tale of Two Type Systems 4

C Is Objective-C 5

The Language and the Library 7

The History of Objective-C 9

Cross-Platform Support 12

Compiling Objective-C Programs 14

2 An Objective-C Primer 17

Declaring Objective-C Types 18

Sending Messages 22

Understanding Selectors 26

Declaring Classes 28

Using Protocols 33

Adding Methods to a Class 35

Using Informal Protocols 38

Synthesizing Methods with Declared Properties 39

Understanding self, _cmd, super 44

Understanding the isa Pointer 47

Initializing Classes 50

Reading Type Encodings 53

Using Closures 56

3 Memory Management 59

Retaining and Releasing 60

Assigning to Instance Variables 61

Avoiding Retain Cycles 63

Autorelease Pools 64

Using Autoreleased Constructors 66

Autoreleasing Objects in Accessors 67

Supporting Automatic Garbage Collection 68

Interoperating with C 70

Using Weak References 71

Allocating Scanned Memory 73

4 Common Objective-C Patterns 75

Supporting Two-Stage Creation 76

Copying Objects 78

Archiving Objects 80

Creating Designated Initializers 84

Enforcing the Singleton Pattern 87

Delegation 89

Providing Façades 91

Creating Class Clusters 93

Using Run Loops 96

5 Numbers 99

Storing Numbers in Collections 101

Performing Decimal Arithmetic 105

Converting Between Strings and Numbers 108

Reading Numbers from Strings 110

6 Manipulating Strings 113

Creating Constant Strings 114

Comparing Strings 115

Processing a String One Character at a Time 119

Converting String Encodings 122

Trimming Strings 125

Splitting Strings 126

Copying Strings 128

Creating Strings from Templates 130

Storing Rich Text 133

7 Working with Collections 135

Using Arrays 137

Manipulating Indexes 139

Storing Unordered Groups of Objects 141

Creating a Dictionary 143

Iterating Over a Collection 145

Finding an Object in a Collection 149

Subclassing Collections 152

8 Dates and Times 157

Finding the Current Date 158

Converting Dates for Display 160

Calculating Elapsed Time 163

Parsing Dates from Strings 165

Receiving Timer Events 166

9 Working with Property Lists 169

Storing Collections in Property Lists 170

Reading Data from Property Lists 173

Converting Property List Formats 176

Storing User Defaults 178

Storing Arbitrary Objects in User Defaults 182

10 Interacting with the Environment 185

Getting Environment Variables 186

Parsing Command-Line Arguments 188

Accessing the User’s Locale 190

Supporting Sudden Termination 191

11 Key-Value Coding 195

Accessing Values by Key 196

Ensuring KVC Compliance 197

Understanding Key Paths 201

Observing Keys 203

Ensuring KVO Compliance 205

12 Handling Errors 209

Runtime Differences for Exceptions 210

Throwing and Catching Exceptions 214

Using Exception Objects 216

Managing Memory with Exceptions 218

Passing Error Delegates 221

Returning Error Values 222

Using NSError 223

13 Accessing Directories and Files 227

Reading a File 228

Moving and Copying Files 230

Getting File Attributes 232

Manipulating Paths 234

Determining if a File or Directory Exists 236

Working with Bundles 238

Finding Files in System Locations 240

14 Threads 245

Creating Threads 246

Controlling Thread Priority 247

Synchronizing Threads 250

Storing Thread-Specific Data 252

Waiting for a Condition 255

15 Blocks and Grand Central 259

Binding Variables to Blocks 260

Managing Memory with Blocks 264

Performing Actions in the Background 267

Creating Custom Work Queues 269

16 Notifications 273

Requesting Notifications 274

Sending Notifications 276

Enqueuing Notifications 277

Sending Notifications Between Applications 278

17 Network Access 283

Wrapping C Sockets 284

Connecting to Servers 286

Sharing Objects Over a Network 289

Finding Network Peers 292

18 Debugging Objective-C 297

Inspecting Objects 298

Recognizing Memory Problems 300

Watching Exceptions 302

Asserting Expectations 304

Logging Debug Messages 306

19 The Objective-C Runtime 309

Sending Messages by Name 310

Finding Classes by Name 312

Testing If an Object Understands a Method 313

Forwarding Messages 315

Finding Classes 318

Inspecting Classes 320

Creating New Classes 322

Index 325



About the Author :

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 to build a desktop environment atop GNUstep. He has created a new Objective-C runtime library, worked on Objective-C support in the clang compiler, and published papers on Objective-C. He is the author of Cocoa Programming Developer’s Handbook (Addison-Wesley, 2009).


Best Sellers


Product Details
  • ISBN-13: 9780132486545
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Addison Wesley
  • Language: English
  • Series Title: Developer's Library
  • ISBN-10: 0132486547
  • Publisher Date: 25 Jan 2011
  • Binding: Digital download
  • No of Pages: 348
  • Weight: 1 gr


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Objective-C Phrasebook: (Developer's Library)
Pearson Education (US) -
Objective-C Phrasebook: (Developer's Library)
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Objective-C Phrasebook: (Developer's Library)

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!