Đang chuẩn bị liên kết để tải về tài liệu:
Become an Xcoder - Start Programming the Mac Using Objective-C
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
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 1.14a. Released under a Creative Commons License 2.5 Attribution Non-commercial http creativecommons.org licenses by 2.5 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 www.cocoalab.com. Become An Xcoder Contents License.2 Introduction.2 How to use this book.2 00 Before we start.3 01 A Program Is a Series of Instructions.01 1 Introduction.01 1 Variables.01 1 The semicolon.01 1 Naming variables.01 1 Using variables in calculation.01 2 Integers and floats.01 3 Declaring a variable.01 4 Mathematical operations.01 4 Parentheses.01 5 Division.01 5 Modulus.01 5 02 No comment Unacceptable .02 1 Introduction.02 1 Making a comment.02 1 Outcommenting.02 1 Why comment .02 1 03 Functions.03 1 Introduction.03 1 The main function.03 1 Our first function.03 2 Passing in arguments .03 2 Returning values.03 4 Making it all work.03 5 04 Printing on screen.04 1 Introduction.04 1 Using NSLog.04 1 Displaying variables.04 2 Displaying multiple values.04 3 Matching symbols to values.04 4 Linking to Foundation.04 4 05 Compiling and Running a Program.05 1 Introduction.05 1 Creating a project.05 1 Exploring Xcode.05 2 Build and Go.05 4 Bugging.05 4 Our first Application.05 5 Debugging.05 6 Conclusion.05 8 Table of contents