The difference between cocoa and cocoa touch

Source: Internet
Author: User

The same: both contain the two core frameworks of the OC Runtime:

Cocoa contains foundation and appkit frameworks that can be used to develop applications for Mac OS X systems

Cocoa Touch includes foundation and Uikit framework for applications that can be used to develop iphone OS systems

Cocoa in the development environment of Mac OS X, Cocoa Touch is the development environment for Iphone OS

Framework:

The foundation framework implements the NSObject class (that is, the root class), which defines the basic object behavior, and also implements classes for representing basic types (for example, strings and numbers) and group types (such as arrays and dictionaries), as well as some basic tools, such as for internationalization, Tools for object persistence, file management, and XML file processing. You can also use classes in the foundation framework to access the entities and services of a stratum system, such as the access to ports, threads, locks, and processes. The foundation framework is based on the core Foundation framework. The Core Foundation Framework provides a process flower (ANSI C) interface.

AppKit and Uikit can be used to develop an interface for an application. Both use the same, but the platform is different

There are many classes in the framework, for various purposes: some for event processing, some for drawing, some for image processing, some for text processing, some for user typesetting, and for data transfer between applications.

The framework also contains user interface elements such as Table view, sliders, keystrokes, text fields, and warning dialogs.

Cocoa is often used to refer to all classes or objects derived from the root class (NSObject) based on the OBJECTIVE-C runtime.

Programming Languages:

Objective-c when developing the native language of cocoa and cocoa touch applications. However, the cocoa and cocoa touch applications can also contain C + + and ANSI C code, and you can also use the Bridge (_bridge) objective-c runtime scripting language, such as PYOBJC and rubycoco--to develop cocoa applications.

The difference between cocoa and cocoa touch

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.