• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: What's the differnece between API and Framework?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's the differnece between API and Framework?


  • Subject: Re: What's the differnece between API and Framework?
  • From: Michael Ash <email@hidden>
  • Date: Thu, 21 May 2009 21:54:25 -0400

On Thu, May 21, 2009 at 9:38 PM, Chunk 1978 <email@hidden> wrote:
> ok... so an API is like a lower level framework?  wikipedia states
> that Carbon and Cocoa are APIs on Mac, but i always thought those were
> frameworks.

They are both!

API stands for Application Programming Interface. "Interface" is the
key word. An API is not something that actually does work, it's just
an interface. In terms of a crappy metaphor, the API is the menu, and
the framework is the restaurant. The API tells you what's available
and what the stuff does, and then the framework is what actually does
the work.

For example, look at the NSString documentation. It lists a bunch of
methods, and tells you what they do. That is the NSString API. By
itself that is useless, of course. The Cocoa framework contains the
NSString *implementation* which actually makes the API do stuff.

MIke
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >What's the differnece between API and Framework? (From: Chunk 1978 <email@hidden>)
 >Re: What's the differnece between API and Framework? (From: Jonathan Hess <email@hidden>)
 >Re: What's the differnece between API and Framework? (From: Chunk 1978 <email@hidden>)

  • Prev by Date: Re: What's the differnece between API and Framework?
  • Next by Date: Re: What's the differnece between API and Framework?
  • Previous by thread: Re: What's the differnece between API and Framework?
  • Next by thread: Re: What's the differnece between API and Framework?
  • Index(es):
    • Date
    • Thread