What is COCOA

Discussion in 'Mac Help/Tips' started by stoid, May 23, 2002.

  1. stoid macrumors 601

    stoid

    Joined:
    Feb 17, 2002
    Location:
    So long, and thanks for all the fish!
    #1
    I know that Classic is OS 9, and Carbon is OS X, but what is Cocoa?? Is it Unix based, or what??
     
  2. PCUser macrumors regular

    Joined:
    Mar 1, 2002
    #2
    According to Apple's website (http://developer.apple.com/cocoa/), Cocoa is an Objective-C based OO API specifically for MacOS X. It came from NeXTStep.

    Also on Apple's website (http://developer.apple.com/carbon/), they mention that the Carbon API is there just to smooth the transition from MacOS 9 to MacOS X. Apps written using the Carbon API set will run on MacOS 8.1 and later. (That incluse MacOS X)

    My understanding is that Carbon allows developers to write the app so that it runs on MacOS 9 and MacOS X, but it won't run as fast as if it was written using Cocoa. Apple wants everybody to eventually switch to using Cocoa...
     
  3. cleo macrumors 65816

    cleo

    Joined:
    Jan 21, 2002
    Location:
    Tampa Bay Area, FL, USA
    #3
    Carbon vs. Cocoa

    Actually, both Carbon and Cocoa apps run in OS X. Cocoa is purely for X, and apps written in it can take advantage of certain features built into the OS (like spell check, services, font smoothing, etc). Carbon is used mostly for older apps that are being ported to OS X, like all the MS and Adobe software. While it's much more feasible for software developers to carbonize older software instead of totally starting from scratch, cocoa apps tend to be more responsive, etc *because* they've been written from the ground up for OS X.
     

Share This Page