Openeim When you create a new class, we all choose Cocoa class.

Source: Internet
Author: User

Source: Openeim When you create a new class, we all choose Cocoa class.

Openeim Why do we choose Cocoa class when we create a new class in the content mentioned earlier? What is cocoa?
Cocoa is not a programming language (it can run multiple programming languages), nor is it a development tool (we can still develop cocoa programs via the command line), which is a native object-oriented API for creating Mac OS X and iOS programs,Openeim Provides a programming environment for both applications.
We are often referred to as the "Cocoa framework", in fact the cocoa itself is a set of frames, which contains a number of sub frames, the most important of which are "Foundation" and "Uikit". The former is the basis of the framework, and interface-independent, which contains a large number of commonly used APIs, the latter is the basic UI class library, we will often use in the development of iOS. The position of these two frames in the system is as follows:
56 seconds ago Upload download Attachment (21.78 KB)


In fact, all Mac OS x and iOS programs are composed of a large number of objects, and the root objects of these objects are nsobject,nsobject in the foundation framework, the specific class structure is as follows:
56 seconds ago Upload download Attachment (62.07 KB)


56 seconds ago Upload download Attachment (79.38 KB)





56 seconds ago Upload download Attachment (83.06 KB)


Usually we will divide them into several categories:
Value Objects Collection operating system services: File systems, URLs, process communication notification archiving and serialization expressions and conditional judgments OBJECTIVE-C language Services

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.