Cocoa

( 38 )

Overview

Develop applications for Mac OS X with this Developer Reference guide

Make a clean transition to programming in Apple environments using the elegant and dynamic programming API Cocoa and this practical guide. Written by aseasoned Mac expert, this book shows you how to write programs in Cocoa for the rapidly expanding world of Macintosh users.

Part of the Developer Reference series, this book prepares you for a...

See more details below
Available through our Marketplace sellers.
Other sellers (Paperback)
  • All (21) from $1.99   
  • New (11) from $2.27   
  • Used (10) from $1.99   
Close
Sort by
Page 1 of 2
Showing 1 – 10 of 11 (2 pages)
Note: Marketplace items are not eligible for any BN.com coupons and promotions
$2.27
Seller since 2009

Feedback rating:

(2487)

Condition:

New — never opened or used in original packaging.

Like New — packaging may have been opened. A "Like New" item is suitable to give as a gift.

Very Good — may have minor signs of wear on packaging but item works perfectly and has no damage.

Good — item is in good condition but packaging may have signs of shelf wear/aging or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Acceptable — item is in working order but may show signs of wear such as scratches or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Used — An item that has been opened and may show signs of wear. All specific defects should be noted in the Comments section associated with each item.

Refurbished — A used item that has been renewed or updated and verified to be in proper working condition. Not necessarily completed by the original manufacturer.

New
2010-10-12 Paperback 1 New 0470495898 Ships Within 24 Hours. Tracking Number available for all USA orders. Excellent Customer Service. Upto 15 Days 100% Money Back Gurantee. Try ... Our Fast! ! ! ! Shipping With Tracking Number. Read more Show Less

Ships from: Bensalem, PA

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$2.60
Seller since 2008

Feedback rating:

(2263)

Condition: New
0470495898 New condition. Ships immediately.

Ships from: Lindenhurst, NY

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$2.60
Seller since 2005

Feedback rating:

(1610)

Condition: New
2010-10-12 Paperback 1 New 0470495898 New condition. Ships immediately.

Ships from: plainview, NY

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$2.99
Seller since 2008

Feedback rating:

(4502)

Condition: New
0470495898 SHIPS WITHIN 24 HOURS!! (SAME BUSINESS DAY) GREAT BOOK!!

Ships from: BAY SHORE, NY

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$15.30
Seller since 2010

Feedback rating:

(988)

Condition: New
PAPERBACK New 0470495898 Friendly Return Policy. A+++ Customer Service!

Ships from: Philadelphia, PA

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$15.30
Seller since 2010

Feedback rating:

(739)

Condition: New
PAPERBACK New 0470495898! ! ! ! BEST PRICES WITH A SERVICE YOU CAN RELY! ! !

Ships from: Philadelphia, PA

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$15.30
Seller since 2014

Feedback rating:

(454)

Condition: New
PAPERBACK New 0470495898! ! KNOWLEDGE IS POWER! ! ENJOY OUR BEST PRICES! ! ! Ships Fast. All standard orders delivered within 5 to 12 business days.

Ships from: Southampton, PA

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$15.61
Seller since 2011

Feedback rating:

(798)

Condition: New
PAPERBACK New 0470495898 SERVING OUR CUSTOMERS WITH BEST PRICES. FROM A COMPANY YOU TRUST, HUGE SELECTION. RELIABLE CUSTOMER SERVICE! ! HASSLE FREE RETURN POLICY, SATISFACTION ... GURANTEED**** Read more Show Less

Ships from: Philadelphia, PA

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$23.29
Seller since 2010

Feedback rating:

(77)

Condition: New
New Ships from the UK. BRAND NEW Your purchase also supports literacy charities. *****PLEASE NOTE: This item is shipping from an authorized seller in Europe. In the event that a ... return is necessary, you will be able to return your item within the US. To learn more about our European sellers and policies see the BookQuest FAQ section***** Read more Show Less

Ships from: Dunfermline, United Kingdom

Usually ships in 1-2 business days

  • Canadian
  • Standard, 48 States
  • Standard (AK, HI)
$33.98
Seller since 2008

Feedback rating:

(282)

Condition: New
0470495898 New item in stock, may show minimal wear from storage. I ship daily and provide tracking! 100% Money Back Guarantee!

Ships from: FORT MYERS, FL

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
Page 1 of 2
Showing 1 – 10 of 11 (2 pages)
Close
Sort by
Marketplace
BN.com

All Available Formats & Editions

Overview

Develop applications for Mac OS X with this Developer Reference guide

Make a clean transition to programming in Apple environments using the elegant and dynamic programming API Cocoa and this practical guide. Written by aseasoned Mac expert, this book shows you how to write programs in Cocoa for the rapidly expanding world of Macintosh users.

Part of the Developer Reference series, this book prepares you for a productive programming experience on today's fastest-growing platform.

  • Cocoa is a programming framework for developing in Apple environments, including Mac OS X 10.6 Snow Leopard
  • This book covers all the major information you need to start developing dynamic applications for Mac OS X
  • Master all Cocoa tools, including Xcode and working with Objective-C
  • Includes full coverage of the Cocoa API, Xcode, and Objective-C, as well as programming for Apple's latest OS X, Snow Leopard
  • Companion Web site includes all code files

Programming for Apple's Macintosh is a growing career field. This essential guide, one of the most comprehensive on Cocoa, will help you quickly become productive.

Read More Show Less

Product Details

  • ISBN-13: 9780470495896
  • Publisher: Wiley
  • Publication date: 10/12/2010
  • Series: Developer Reference Series , #5
  • Edition description: Original
  • Edition number: 1
  • Pages: 624
  • Product dimensions: 7.30 (w) x 9.00 (h) x 1.50 (d)

Meet the Author

Richard Wentk is a developer with more than fifteen years of experience in publishing, and is one of the UK's most reliable technology writers. He covers Apple products and developments for MacWorld and MacFormat magazines, and also writes about technology and business strategy for publications such as Computer Arts and BBC Focus.
Read More Show Less

Table of Contents

Preface

Acknowledgments

Introduction

Part I Getting Started 1

Chapter 1 Introducing Cocoa 3

Introducing Cocoa 3

Understanding Cocoa's history 3

Moving from NeXTStep to Cocoa 7

Profiting from Cocoa 9

Profiting from the IPhone 12

Developing for fun 14

Introducing Xcode and the apple Developer Programs 15

Working with Xcode and Interface Builder 16

Working with Safari 17

Summary 18

Chapter 2 Think Cocoa! 19

Designing for Cocoa 19

Understanding Aqua 20

Using Aqua with Cocoa 21

Creating Cocoa Applications 22

Understanding layers and frameworks 22

Developing features across layers 27

Moving to Cocoa and Objective-C from other Platforms 31

Working with Objective-C objects and messages 31

Managing data in Cocoa and Objective-C 38

Exploring other Cocoa features 45

Comparing Cocoa to other platforms 48

Summary 55

Chapter 3 Introducing the Cocoa and Os X Documentation 57

Getting Started with the Documentation 59

Understanding resource types 61

Understanding Topics 69

Using the Documentation 71

Sorting the documentation 71

Working with source code 72

Summary 72

Chapter 4 Getting Started with Xcode 75

Getting Ready for Xcode 75

Registering as a developer 77

Joining the Mac Developer and iPhone Developer programs 80

Installing Xcode 82

Creating a New OS X Project 84

Exploring Xcode's Windows 90

Understading Groups & Files 90

Selecting items for editing 92

Customizing the toolbar 93

Summary 94

Chapter 5 Introducing Classes and objects in Objective-C 95

Understanding Objects 95

Understanding classes 97

Designing objects 100

Creating classes 107

Defining a class interface 107

Defining accessors: setters and getters 109

Using self 110

Defining a class implementation 110

Defining public properties 111

Defining public methods 111

Using Objects in Objective-C 113

Summary 114

Chapter 6 Getting Started With Classes and Messages in Application Design 115

Understanding the Cocoa Development Process 115

Understanding Applications 116

Exploring standard application elements 118

Introducing the application delegate 118

Discovering Object Methods and Properties 121

Finding and using class references 121

Introducing Code Sense 126

Working with multiple classes 128

Receiving messages from OS X with a delegate 134

Receiving messages from OS X with NSResponder 142

Subclassing NSWindow 144

Creating a category on NSWindow 149

Summary 150

Chapter 7 Introducing Interface Builder 151

Introducing Nib Files 151

Loading objects from nib files 153

Editing nib files 154

Getting Started with Interface Builder 154

Introducing IB's windows 155

Introducing First Responder and File's Owner 168

Setting Classes and Subclasses 170

Summary 172

Chapter 8 Building an Application with Interface Builder 173

Designing a Project in Interface Builder 173

Introducing the Interface Builder workflow 174

Adding objects to a nib 176

Understanding links, outlets, and actions 184

Creating links in Interface Builder 189

Using NSTimer to create a simple seconds counter 195

Using Advanced UI Techniques 199

Using loose typing and (id) sender 200

Placing outlets and actions 202

Summary 205

Part II Going Deeper 207

Chapter 9 Using Cocoa Design Patterns and Advanced Messaging 209

Understanding Model-View-Controller 209

Using MVC with Cocoa controller objects 212

Creating custom controllers 213

Defining the data model 214

Understanding Target-Action 214

Defining selectors 215

Using selectors in code 216

Understanding the limitations of selectors 216

Defining selectors in Interface Builder 217

Creating an example application 219

Other applications of selectors 221

Using Key-Value Coding 222

"Objectifying" values 222

Using Key-Value Observing 224

Making assignments KVO compliant 226

Using KVO 227

Using Notifications 228

Posting notifications 230

Using notifications and delegates 230

Handling Errors and Exceptions 232

Using NSError 232

Handling errors with NSException 233

Summary 234

Chapter 10 Working with Files, URLs, and Web Data 235

Creating and Using File Paths 236

Creating paths with NSString 236

Getting the application bundle path 236

Finding other standard directories 237

Using autocompletion 237

Using paths 238

Using file handles 238

Using the File Manager 239

Creating and Using URLs 240

Understanding paths and references 240

Using URLs to read and write data 240

Using Open and Save Panes 241

Using Web APIs 247

Getting Started with bit.ly 248

Using the bit.ly API 251

Creating XML requests 255

Creating asynchronous Web requests 258

Using Cocoa's XML classes 260

Using WebView 261

Summary 264

Chapter 11 Using Timers, Threads, and Blocks 267

Using NSTimer 267

Using performSelector 268

Implementing a pause method 269

Running the selector in a separate thread 269

Messaging across threads 269

Working with NSThread 270

Pausing a thread 270

Managing thread memory 271

Handling Ul and thread Interactions 271

Using NSOperation 271

Creating an NSOperation object 272

Using NSOperationQueue 274

Getting Started with Blocks 277

Understanding block syntax 277

Using NSBlockOperation 279

Passing parameters to NSBlockOperation 280

Introducing Grand Central Dispatch 281

Using NSTask 281

Summary 283

Chapter 12 Managing Data and Memory in Cocoa 285

Introducing Data Collection Objects 286

Using objects, keys, and values 287

Implementing Key-Value Observing 288

Using NSValue and NSNumber 290

Using NSArray 291

Using NSDictionary 296

Using NSSet and NSMutableSet 297

Enumerating items 297

Archiving and de-archiving collection objects 299

Using NSCoder and NSData 300

Introducing archiving and coding 300

Creating a class with NSCoder 302

Archiving and de-archiving an object 304

Managing Memory 307

Using garbage collection 308

Implementing manual memory management 308

Summary 311

Chapter 13 Using Preferences and Bindings 313

Understanding Bindings 313

Getting started with bindings 314

Using bindings to manage interactivity 323

Using KVO to manage bindings 326

Using formatters 328

Using Bindings with Controllers 330

Adding a controller object 332

Setting up the controller's data source 334

Reading data from the controller into a view 335

Implementing Preferences with Bindings 340

Understanding preferences 341

Creating an application with preferences 343

Creating and Using Value Transformers 346

Summary 350

Chapter 14 Usign Core Data 351

Creating a Core Data Application Visually 352

Adding an entity 354

Adding properties 355

Creating relationships 356

Generating a user interface 359

Building the application 361

Exploring and Extending a Core Data Application 363

Understanding Core Data's objects and programming model 365

Displaying search results 370

Summary 374

Chapter 15 Working with Text and Documents 375

Using NSString 375

Usign NSRange 376

Working with encodings 377

Using NSAttributedString 378

Drawing and using attributed strings 380

Creating Nanopad: A Rich Text Editor 381

Using NSFontManager 381

Saving and loading rich text 383

Implementing the Open Recent menu 384

Creating, Saving, and Loading Documents 385

Creating a default nib file 387

Setting document types 388

Implementing save and open code 391

Printing documents 393

Using NSUndoManager 394

Localizing Applications 395

Summary 400

Part III Expanding the Possibilities 401

Chapter 16 Managing Views and Creating 2D Graphics 403

Understanding Windows and Views 404

Understanding the view hierarchy 406

Subclassing the root view 406

Adding and removing views from the view hierarchy 409

Handling mouse events in views 414

Understanding the Cocoa Graphics System 415

Understanding and defining basic geometry 416

Creating shapes and colors in drawRect 418

Creating a simple project: MultiBezier 428

Using Corelmage Filters 429

Adding CoreImage effects in Interface Builder 430

Setting up filters for processing 432

Applying filters to an image 436

Summary 438

Chapter 17 Creating Animations and 3D Graphics 439

Using Direct Property Animation 440

Creating a timer for animation 441

Creating property animation code 442

Using drawRect 443

Using Animators 443

Creating a simple proxy animation 443

Setting the animation duration 446

Customizing the animation object 446

Creating and using animation paths 449

Creating Animations with CALayer 452

Using layers for animation 452

Creating an animatable filter 453

Animating the filter 456

Using OpenGL 458

Introducing OpenGL 459

Creating an OpenGL animation 459

Controlling an OpenGL animation 462

Summary 464

Chapter 18 Debugging, Optimizing, and Managing Code 465

Using the Console and NSLog 466

Getting started with NSLog 466

Selectively enabling NSLog 471

Debugging with Breakpoints and the Debugger Window 473

Enabling debugging 474

Using the Debugger window 478

Using Instruments 481

Using Shark 485

Managing Code with Snapshots and Source Control 486

Copying projects and creating snapshot versions manually 487

Using Snapshots 489

Using SVN source control 491

Summary 492

Chapter 19 Developing for the iPhone and iPad 493

Introducing the iPhone, iPod touch, and iPad 494

Comparing iOS and OS X applications 495

Understanding the mobile app business model 498

Moving to iOS from OS X 502

Getting started with the iPhone SDK 502

Understanding iOS app design goals 503

Understanding key iOS coding differences 505

Considering iOS and hardware compatibility 505

Understanding iOS Views and UI Design 505

Working with Windows and views on the iPhone 505

Managing orientation 509

Adding navigation and control features 511

Handling touch events 514

Working with windows and views on the iPad 515

Developing for iOS in Xcode 516

Using the Xcode Simulator 516

Introducing the Xcode templates 517

Building a Simple Application 524

Adding view controller subclasses 526

Implementing the view controllers 526

Creating views 528

Handling events with protocol messaging 532

Creating an animated view swap 534

Selling in the App Store 536

Understanding certificates, provisioning profiles, and permissions 538

Packaging an app for the App Store 541

Uploading an app to the App Store 542

Summary 543

Part IV Appendixes 545

Appendix A Building Dashboard Widgets 547

Appendix B Maximizing Productivity and Avoiding Errors 565

Index 575

Read More Show Less

Customer Reviews

Average Rating 4.5
( 38 )
Rating Distribution

5 Star

(27)

4 Star

(5)

3 Star

(2)

2 Star

(2)

1 Star

(2)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
See All Sort by: Showing 1 – 20 of 38 Customer Reviews
  • Posted December 21, 2010

    Use only as a reference book!

    I bought this book after reading the free chapter thinking I would learn how to program with Cocoa for the Max OS X platform. Two hundred pages into this and no programming.
    This book is good for reference only.
    It takes you on the history of Unix, Cocoa, some older programs that Apple used to use, breaks down in depth what particular windows do, classes, etc... But never once teaches you how to build a project.
    You can download prewritten projects on Wiley's website, but this does nothing for those wanting to learn how to code with Xcode.
    I am at page 200 and am looking for a new book. I will keep this for reference only.
    Do not read this book if you do not have any experience with Xcode or programming for the Mac platform(s). You will become so confused you may throw your hands up in disgust.
    No wonder why few people program for Apple and this explains why the programs that are out there are way behind those of Microsoft software products.
    I am not going to let the complexity hinder me in learning how to program.
    You should find another book, buy this only as a reference.
    For those that are coding with Xcode and Interface Builder this book might help you troubleshoot your program.

    1 out of 1 people found this review helpful.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted September 13, 2014

    Shimmerpaw

    Pads in.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted September 13, 2014

    Leopardfur

    May i join?

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted September 13, 2014

    Sparklepaw

    Looked for a mateless tom

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted September 6, 2014

    Dbd

    Dhd

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted September 4, 2014

    What clan is this?

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted August 29, 2014

    Aspeneyes

    She comes in.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted September 13, 2014

    Tigerlily

    I had 2 other kits since u ere gone. An jeez there are other ways to silence kits.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted August 26, 2014

    Furyfang to tigerlily

    I have a kit name furyfang age 9 moons rank uknon fur whit with blond reason i want a mate so i have someone to love and to care for and my kit

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted September 6, 2014

    Moonpaw

    Hello!! Wont be on tomorrow due to a birthday party

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted August 23, 2014

    Lore

    The white she cat pads in. May i join?

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted August 23, 2014

    A kit

    Stumbles in. Hello? Will you try to eat me to!

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted August 23, 2014

    Chewbacca

    The wookie

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted August 23, 2014

    Eyes

    Whatever. Clans like this, inactive and tiny, always fail anyways.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted September 4, 2014

    Nightmare

    Does it matter

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted August 23, 2014

    Firepelt

    May i be med cat to this clan asks a she cat

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted August 22, 2014

    Redscar to tigerstar

    Can i be med cat apprenntice?

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted September 3, 2014

    Dragonheart to all

    I need a male cat mate

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted September 13, 2014

    Stonepelt

    One with sensitive hearing

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted August 22, 2014

    Silverstar of Jayclan to Lightningkit

    (Please do not intrude on our territory anymore. The kit came to Jayclan by choice, and it is not fair for you to take it. If the kit wandered to Jayclan, escaped to Jayclan, etc., I'm sorry for bothering you. But if the kit was going to join Jayclan and you took them, please stop. We are tying to remain being an active and big clan, but it is not possible if our members are taken away. Additonally, it is power playing if a kit carrries another kit. The best you could do is drag them one step at a time if they didn't try to run and if they were helping you take them. Thank you, and again I appologize if you weren't 'stealing' the kit.)<br>
    ~$ilverstar of Jayclan

    Was this review helpful? Yes  No   Report this review
See All Sort by: Showing 1 – 20 of 38 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)