1. Chapter 1 Departure
In addition to the objective-C language, this book also introduces Apple's toolkit cocoa (for OS X systems) and cocoa touch (for iOS systems ). They are all written in objective-C language, which contains all the user interface elements and other related content of The OSX and iOS systems respectively. After learning objective-C, you can use cocoa to develop fully functional projects.
1. Prerequisites
Before reading this book, you should have a certain understanding of C or similar languages (C ++ or Java. Familiar with its basic principles, understand what variables, methods, and functions are, and know how to use conditions and loop statements to control the program flow direction. This book will focus on the new features added to objective-C in its Basic Language C, as well as some outstanding features of the apple cocoa toolkit.
1. 2. History
Cocoa and objective-C are the core of Apple OS X and iOS operating systems. As early as the beginning of 1980s, Brad Cox designed objective-C language to combine the advantages of popular, portable C language and the elegant Smalltalk language. In 1985, Steve Jobs founded the next company, dedicated to creating powerful and cost-effective workstations. Next chose Unix as the operating system and created nextstep (a powerful ide developed using objective-C ).
After Apple acquired next in 1996, nextstep changed its name to cocoa and was widely recognized by Macintosh developers. Apple's development tools are provided free of charge. Any programmer can use them as long as they have certain programming experience, basic objective-C knowledge, and a strong desire for knowledge.
Objective-C and cocoa are completed by a group of excellent programmers over several years, and they have never stopped updating and improving. After years of development, objective-C and cocoa have evolved into an exquisite and powerful tool set. In recent years, IOS has become the most popular development platform, while objective-C is the best choice for developing excellent applications. Therefore, it has been more than 20 years since next was first adopted, and the charm of objective-C remains unchanged.
1. 3. Content Overview
Chapter 6 of objective describes the basic features of objective-C language.
Chapter 6 introduces the basic knowledge of object-oriented programming.
Chapter 6 describes how to create a subclass that inherits the features of its parent class.
Chapter 6 describes the collaboration skills among related objects.
Chapter 6 demonstrates the actual policy for creating a program source file.
Chapter 5 introduces how to use xcode and its powerful functions to improve programming efficiency.
Chapter 6 of objective-C is a part of the important framework Foundation kit of cocoa to show you the outstanding features of cocoa.
Chapter 6 describes the memory management operations in the cocoa application.
Chapter 6 describes the magic of object initialization.
Chapter 6 of objective-C describes the actual functions of the dot-point representation in objective-C language and how to easily access objects.
Chapter 6 of objective-c introduces a very good feature: category ). You can use it to add your own methods for existing classes (even if not written by you.
Chapter 13th introduces an Inheritance Method of objective-C, protocol, which allows class files to implement packaged feature sets.
Chapter 6 of objective demonstrates how to use the latest objective-C feature "block" (which can contain data and Code) to enhance functions of functions.
Chapter 6 describes how to use the appkit framework to develop sophisticated OSX applications.
Chapter 16th is similar to Chapter 15th, except that it introduces the basic framework of IOS applications, uikit.
Chapter 6 shows how to save and retrieve data.
Chapter 18th explains how to use the "key-value encoding" method to indirectly process data.
Chapter 6 describes how to use powerful xcode tools to find common errors for programmers.
Finally, chapter 1 describes how to break down data.
1. 4. Preparations
Xcode is a development environment provided by Apple for creating iOS and OS X applications. The first step on a long journey to OSX and iOS development is to ensure that xcode is installed on your computer. Readers without installation can download and install from macapp store.
1. 5. Summary
Both OSX and iOS programs are written in objective-C language. The technologies used can be traced back to 1980s. Today these technologies have evolved into a powerful tool set. This book assumes that you have a certain understanding of the C language or other general programming languages.
Hope you can have fun in this book!
I accept my personal donation. If you feel that the article is useful to you and are willing to donate money to your silent speech, you will be grateful if you speak in silence.