NuttingCocoaontheMacLearnCompanioneBookAvailableTrim:7.5x9.25spine=0.875392pagecountMasteringMacOSX’sCocoaFrameworks,withXcodeandObjective-CJackNutting|DavidMark|JeffLaMarcheLearnCocoaontheMac COMPANION eBOOK SEE LAST PAGE FOR DETAILS ON $10 eBOOK VERSIONUS$39.99ShelveinMacUserlevel:Beginner-Intermediatewww.apress.comSOURCECODEONLINEBOOKSFORPROFESSIONALSBYPROFESSIONALS®ISBN978-1-4302-1859-3978143021859353999thisprintforcontentonly—size&colornotaccurateCYANMAGENTAYELLOWBLACKPANTONE123CSPOTMATTELearnCocoaontheMacpresentscompletecoverageofthelatestCocoaframeworksinalogical,step-by-stepprogressionofdiscussionsandtutori-als.Thebaseframeworksareintroducedanddemonstrated:AppKitforallthestandardgraphicalcontrolsandtheFoundationframeworkclassesforObjec-tive-C.You’lldigintothebasicUIobjectsandthenattackthefundamentalsofCocoaBindings,partofApple’scomprehensiveimplementationoftheModel-View-Controller(MVC)designpattern.Thenit’sontoacomprehensivelookatCoreData,thekeytoalldata-driv-enapplications,frombasicconceptstodatamodelingandevenmoread-vanceddatatechniques.You’llalsolearndrawingwithCoreGraphicsandCoreAnimation,filemanagement,aswellasthelatesttechniqueintroducedwithSnowLeopard:usingGrandCentralDispatchtomakeyourapplicationsconcurrent,inordertomakethemostoftoday’smulti-coreprocessors.Throughacombinationofpragmaticproblem-solvingandadeeprespectforCocoa’sunderlyingdesignphilosophies,you’lllearnaboutthediversecapabilitiesofthevariousAPIsandthenhowtoputthemalltouseindy-namiccombinations.Andwhenyou’redone,you’llhaveanintegratedviewofCocoa’scomponentsandhowtousethemtobuildgreatMacOSXappswiththisrichandmaturetoolset.Whatyou’lllearn• How to build your own Cocoa applications—this is much more than just a quick introduction to Cocoa!• What makes Cocoa and its MVC architecture tick• Efficient coding techniques for stitching together powerful APIs• How to leverage Cocoa’s design patterns and put them to proper use in your own codeWhoisthisbookfor?ThosenewtoMacOSXdevelopmentwithabasicunderstandingofobject-orientedprogrammingandseasoneddeveloperswhowanttomasterthelat-estCocoaframeworks,aswellasiPhonedeveloperswhowanttoextendtheirknowledgeofCocoaTouchtoincludeMac-specifictechnologies.JackNutting, veteran Cocoa expert back to the early days of NextStep, along with DaveMarkand JeffLaMarche, the bestselling authors of BeginningiPhone3Development, share their knowledge of and keen insights for making great Mac OS X apps.RELATED TITLESiLearnCocoaontheMac■■■JackNutting,DaveMarkandJeffLaMarcheiiLearnCocoaontheMacCopyright©2010byJackNutting,DavidMarkandJeffLaMarcheAllrightsreserved.Nopartofthisworkmaybereproducedortransmittedinanyformorbyanymeans,electronicormechanical,includingphotocopying,recording,orbyanyinformationstorageorretrievalsystem,withoutthepriorwrittenpermissionofthecopyrightownerandthepublisher.ISBN-13(pbk):978-1-4302-1859-3ISBN-13(electronic):978-1-4302-1860-9PrintedandboundintheUnitedStatesofAmerica987654321Trademarkednamesmayappearinthisbook.Ratherthanuseatrademarksymbolwitheveryoccurrenceofatrademarkedname,weusethenamesonlyinaneditorialfashionandtothebenefitofthetrademarkowner,withnointentionofinfringementofthetrademark.PresidentandPublisher:PaulManningLeadEditors:ClayAndres,BrianMacDonald,MatthewMoodie,DouglasPundickTechnicalReviewer:MarkDalrympleEditorialBoard:ClayAndres,SteveAnglin,MarkBeckner,EwanBuckingham,GaryCornell,JonathanGennick,JonathanHassell,MichelleLowman,MatthewMoodie,DuncanParkes,JeffreyPepper,FrankPohlmann,DouglasPundick,BenRenow-Clarke,DominicShakeshaft,MattWade,TomWelshCoordinatingEditor:MaryTobinCopyEditor:TracyBrownCollinsCompositor:MacPS,LLCIndexer:JohnCollinArtist:AprilMilneCoverDesigner:AnnaIshchenkoPhotoCredit:WeronicaMeijerDistributedtothebooktradeworldwidebySpringer-VerlagNewYork,Inc.,233SpringStreet,6thFloor,NewYork,NY10013.Phone1-800-SPRINGER,fax201-348-4505,e-mailorders-ny@springer-sbm.com,orvisithttp://www.springeronline.com.Forinformationontranslations,pleasee-mailinfo@apress.com,orvisithttp://www.apress.com.ApressandfriendsofEDbooksmaybepurchasedinbulkforacademic,corporate,orpromotionaluse.eBookversionsandlicensesarealsoavailableformosttitles.Formoreinformation,referenceourSpecialBulkSales–eBookLicensingwebpageathttp://www.apress.com/info/bulksales.Theinformationinthisbookisdistributedonan“asis”basis,withoutwarranty.Althougheveryprecautionhasbeentakeninthepreparationofthiswork,neithertheauthor(s)norApressshallhaveanyliabilitytoanypersonorentitywithrespecttoanylossordamagecausedorallegedtobecauseddirectlyorindirectlybytheinformationcontainedinthiswork.iiiivContentsataGlance■ContentsataGlance.......................................................................................iv■Contents..........................................................................................................v■Foreword........................................................................................................xi■AbouttheAuthors......................................................................