想要学习和了解Cocoa框架
参考:
[整理]
Apple的Cocoa,有点类似于Microsoft的.NET Framework,是个框架:
包含了基本的runtime运行时和基本的类库library
Cocoa也是个Framework,和.NET不太一样的是:
Cocoa即支持桌面端OS X,也只是移动端iOS
而.NET只支持桌面端Windows系统
Cocoa中的一些核心框架,以及对应缩写是:
前缀 | 所对应的Cocoa框架 |
NS | Foundation |
NS | Application Kit |
AB | Address Book |
IB | Interface Builder |
What Is Cocoa?
Cocoa is an application environment for both the OS X operating system and iOS, the operating system used on Multi-Touch devices such as iPhone, iPad, and iPod touch. It consists of a suite of object-oriented software libraries, a runtime system, and an integrated development environment.
The Cocoa Environment
Cocoa is a set of object-oriented frameworks that provides a runtime environment for applications running in OS X and iOS. Cocoa is the preeminent application environment for OS X and the only application environment for iOS. (Carbon is an alternative environment in OS X, but it is a compatibility framework with procedural programmatic interfaces intended to support existing OS X code bases.) Most of the applications you see in OS X and iOS, including Mail and Safari, are Cocoa applications. An integrated development environment called Xcode supports application development for both platforms. The combination of this development environment and Cocoa makes it easy to create a well-factored, full-featured application.
一些特定的缩写:
Abbreviation | Meaning and comments |
alloc | Allocate. |
alt | Alternate. |
app | Application. For example, NSApp the global application object. However, “application” is spelled out in delegate methods, notifications, and so on. |
calc | Calculate. |
dealloc | Deallocate. |
func | Function. |
horiz | Horizontal. |
info | Information. |
init | Initialize (for methods that initialize new objects). |
int | Integer (in the context of a C int—for an NSInteger value, use integer). |
max | Maximum. |
min | Minimum. |
msg | Message. |
nib | Interface Builder archive. |
pboard | Pasteboard (but only in constants). |
rect | Rectangle. |
Rep | Representation (used in class name such as NSBitmapImageRep). |
temp | Temporary. |
vert | Vertical. |
转载请注明:在路上 » 【整理】Cocoa框架