tailieunhanh - Become an Xcoder - Start Programming the Mac Using Objective-C

Apple provides you with all the tools you need to create great Cocoa applications, for free. This set of tools, known under the name Xcode, comes with Mac OS X, or you can download it from the developer section on Apple’s website. Several good books on programming for the Mac exist, but they assume that you already have some programming experience. This book doesn’t. It teaches you the basics of programming, in particular Objective-C programming, using Xcode. After some 5 chapters, you will be able to create a basic program without a Graphical User Interface (GUI). After a few more chapters, you will know how. | Become an Xcoder Start Programming the Mac Using Objective-C By Bert Altenberg Alex Clarke and Philippe Moughin License Copyright 2008 by Bert Altenburg Alex Clarke and Philippe Mougin. Version . Released under a Creative Commons License Attribution Non-commercial http licenses by Attribution The licensors Bert Altenburg Alex Clarke and Philippe Mougin permit others to copy modify and distribute the work. In return the licensees must give the original authors credit. Non-commercial The licensors permit others to copy modify and distribute the work and use the work in paid-for and free courses. In return licensees may not sell the work itself although it may accompany other work that is sold. CocoaLab CocoaLab makes this book freely available online in the form of a wiki or a pdf document in English Chinese and Arabic from http . Become An Xcoder Contents How to use this 00 Before we 01 A Program Is a Series of 1 1 1 The 1 Naming 1 Using variables in 2 Integers and 3 Declaring a 4 Mathematical 4 5 5 5 02 No comment Unacceptable .02 1 1 Making a 1 1 Why comment .02 1 03 1 1 The main 1 Our first 2 Passing in arguments .03 2 Returning 4 Making it all 5 04 Printing on 1 1 Using 1 Displaying 2 Displaying multiple 3 Matching symbols to 4 Linking to 4 05 Compiling and Running a 1 1 Creating a 1 Exploring 2 Build and 4 4 Our first 5 6 8 Table of contents