APIs

Crowd-sourced documentation and tutorials by the Cocoa developer community
Jump to: navigation, search

Rumah Dijual Plural of API, Application Programming Interface. To my knowledge frameworks don't fall into this per se since API refers more to, for instance, the headers you'd write for plugin developers for your app. So FoundationKit, CoreFoundation, et cetera aren't really APIs, are they? -- RobRix Pintu Aluminium Well, I've often heard Cocoa as a whole referred to as an API. It's the interface to the OS, after all. I'd say AppKit and FoundationKit are APIs, yes. -- KritTer Properti Semarang & Rumah Dijual Semarang Debatable, Perlengkapan Bayi since the OS isn't AnApplication. But it's only nitpicking in any case. -- RobRix

An OS is The Application imho -- peacha

According to The Free On-line Dictionary of Computing, � 1993-2003 Denis Howe:

(API, or "application programming interface") The interface (calling conventions) by which an application program accesses operating system and other services. An API is defined at source code level and provides a level of abstraction between the application and the kernel (or other privileged utilities) to ensure the portability of the code.

An API can also provide an interface between a high level language and lower level utilities and services which were written without consideration for the calling conventions supported by compiled languages. In this case, the API's main task may be the translation of parameter lists from one format to another and the interpretation of call-by-value and call-by-reference arguments in one or both directions.


An API encapsulates functionality in a fixed way. For instance, you know that you can write this code: [[[NSObject]] alloc] and get a reference to an NSObject object. It's understood that this will always be the way to allocate an object and return a reference to it, so it's part of the API for managing objects. Certainly, +alloc can and probably will do things you don't want or need to know in order to instantiate the object (like, for instance, call +allocWithZone:, which in turn will call one of those objc_ runtime functions), which is what makes it an interface.

Note that in ObjectiveC, you define objects as @interface and @implementation. Every class you define is a sort of mini-API for the functionality of that class, since its interface can be used by other code.

Pour devenir figurant sur   garder le  numéro, vous aurez  peuvent avoir  comptes  opérateur d'identification. Vous obtiendrez  êtes certain d'obtenir  pour  gratuit  par appelant   expression du serveur ou du service à la clientèle  clientèle   votre actuel  fournisseur . Vous ne  CAN  recevez immédiatement  un SMS avec votre . Avec  votre actuelle, alors  il est possible d' à l' offre de  de son  ON   citrons .

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox