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