• 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
Cocoa and Carbon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cocoa and Carbon


  • Subject: Cocoa and Carbon
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Wed, 14 May 2008 16:21:13 +0200

I always thought that Cocoa is an Objective-C API, which is a more convenient counterpart to the more verbose or more cumbersome C API of Carbon, which often gives more detailed control though.

E.g. NSString has stringWithContentsOfFile:usedEncoding:error:, but Carbon has a Text Encoding Conversion Manager (ADC Home > Reference Library > Reference > Carbon > Text & Fonts > Text Encoding Conversion Manager Reference) with dozens of functions.


But then there is something like a "Carbon application" which seems to be different from "application which uses (mostly?, exclusively?) the Carbon C API".
For example, there is NSApplicationLoad, which is the "Startup function to call when running Cocoa code from a Carbon application."


So: what is the real difference between a "Carbon application" and a Cocoa one? Why would one create a Carbon application?

Kind regards,

Gerriet.


_______________________________________________

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


  • Follow-Ups:
    • Re: Cocoa and Carbon
      • From: Stefan Werner <email@hidden>
    • Re: Cocoa and Carbon
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Launching Cocoa Application externally
  • Next by Date: Re: NSRectFillListWithColors question
  • Previous by thread: Re: Launching Cocoa Application externally
  • Next by thread: Re: Cocoa and Carbon
  • Index(es):
    • Date
    • Thread