Differences between cocoa and cocoa touch

Source: Internet
Author: User

CocoaAndCocoa touchThe difference is what we will introduce in this article. What they have in common is that both of them contain objective-C runtime and two coreFramework:

CocoaIncluding Foundation and appkitFrameworkCan be used to develop Mac OS X applications.

Cocoa touch includes the foundation and uikit framework, which can be used to develop applications of the iPhone OS system.

Cocoa is the development environment for Mac OS x, and cocoa touch is the development environment for iPhone OS.

Framework

FoundationFrameworkImplements the nsobjec class (that is, the root class), which defines the basic object behavior. In addition, the framework implements classes used to represent basic types (such as strings and numbers) and group types (such as arrays and dictionaries). It also provides some basic tools, such as tools for internationalization, Object persistence, file management, and XML processing. You can also use the classes in the foundation framework to access the entities and services of the underlying system. For example, you can use them to access ports, threads, locks, and processes. The foundation framework is based on the core foundation framework. The core foundation framework provides process-based (ansi c) interfaces.

You can use the appkit and uikit frameworks to develop user interfaces for applications. The two functions are the same, but they are different for different platforms. There are many classes in the framework, which have different purposes: some are used for event processing, some for drawing, some for image processing, some for text processing, some for user layout, and data transmission between applications. The framework also contains user interface elements such as table view, slide bar, buttons, text fields, and warning dialog boxes.

Note: The term "cocoa" is often used to refer to all classes or objects derived from the root class (nsobject) based on objective-C runtime.

Programming Language

Objective-C is developmentCocoaAndCocoa touchThe local language of the application is also the most important language. However, cocoa and cocoa touch applications can also contain c ++ and ansi c code. In addition, you can also use the scripting language for bridging objective-C Runtime-such as pyobjc and rubycocoa-developmentCocoaApplication.

 

Excerpted from 51cto.com

Differences 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.