最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【整理】Cocoa框架

Cocoa crifan 2696浏览 0评论

 

想要学习和了解Cocoa框架

参考:

Introduction to Coding Guidelines for Cocoa
What Is Cocoa?
Code Naming Basics

[整理]

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.
cocoa framework darwin architechture
一些特定的缩写:
AbbreviationMeaning and comments
allocAllocate.
altAlternate.
appApplication. For example, NSApp the global application object. However, “application” is spelled out in delegate methods, notifications, and so on.
calcCalculate.
deallocDeallocate.
funcFunction.
horizHorizontal.
infoInformation.
initInitialize (for methods that initialize new objects).
intInteger (in the context of a C int—for an NSInteger value, use integer).
maxMaximum.
minMinimum.
msgMessage.
nibInterface Builder archive.
pboardPasteboard (but only in constants).
rectRectangle.
RepRepresentation (used in class name such as NSBitmapImageRep).
tempTemporary.
vertVertical.

 

里面也有一些Cocoa的介绍。

转载请注明:在路上 » 【整理】Cocoa框架

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
84 queries in 0.166 seconds, using 22.11MB memory