Monday, December 30, 2013

the difference between cocoa and foundation framework?

RT
Reply:
Cocoa is the native object-oriented programming environment for the Apple Mac OS X created, is one of the five API Mac OS X on (the other four are Carbon, POSIX, X11 and Java).

Cocoa applications on Apple's general development tools Xcode (formerly Project Builder) and Interface Builder written in Objective-C. However, through the Java bridge, PasCocoa, PyObjC, CamelBones and RubyCocoa and other bridging technologies, Java, Clozure CL, LispWorks, Object Pascal, Python, Perl, Ruby, and other tools or languages ​​can also be used to develop Cocoa applications. There are also some other languages ​​Cocoa achieved without bridging, such as Apple's development of Nu MacRuby and similar Lisp language. Do not use Xcode and Interface Builder, just by a text editor, GCC and GNU make tool can also be used to develop Cocoa Objective-C language application.

For end users, using the Cocoa programming environment developed application is Cocoa applications. Such applications have a unique look, because Cocoa programming environment allows the program automatically follow the man-machine interface in many of Apple's Code of Practice.



Cocoa contains two main Objective-C object library, called the "frame." Functional framework similar to the dynamic library, which can be loaded dynamically at runtime application's address space, but the framework as a bundle (computer) instead of a separate file, which in addition to executable code, but also contains a resource header file and documentation.

"Foundation Kit", or simply "Foundation", first appeared in the OpenStep. In Mac OS X, which is based on the Core Foundation. As a general object-oriented library, Foundation provides a string value management, and enumerate the container, distributed computing, the event loop, and the other is not directly related with the graphical user interface features. Which for classes and constants "NS" prefix from Cocoa sources, NeXTSTEP. It can be used in Mac OS X and iOS.
"Application Toolkit", or AppKit (Application Kit) is directly derived from the AppKit of NeXTSTEP. It contains the procedures required to interact with the graphical user interface code. It is based on the establishment of the Foundation, but also the use of "NS" prefix. It can only be used in Mac OS X,.
"User interface toolkit", or UIKit (User Interface Kit), a graphical user interface tool for iOS package. Unlike AppKit, it uses the "UI" prefix.
A key part of the Cocoa framework is its diverse view of the model. Overall, it is a PDF rendering model provided by Quartz-based, this feature allows the use of custom PostScript to draw graphical content, but also automatically supports printers and similar devices. Since the Cocoa framework for managing all drawing operations, such as cropping, scrolling, zooming, etc., programmers can achieve the basic functions are not repeated, and can focus on the key features of the provider.


Reply:
Declaration, the above answer is switched from Wikipedia.
Learning experience problems, the first idea is www.google.com.hk
This site is the first choice for help programmers.
Reply:

No comments:

Post a Comment