Friday, February 25, 2011

Difference between COCOA,COCOA touch and objective C.

Objective C is a dynamic programming language - a bit like C++ and a bit like Java.

Cocoa is the application framework for Mac OS X.

Cocoa Touch is the application framework for iPhone and iPod Touch - very similar to Cocoa.

Cocoa is commonly referred to as the combination of the Foundation and AppKit frameworks, while Cocoa Touch is the combination of the Foundation and UIKit frameworks.

Cocoa and Cocoa Touch sit on top of other collections of frameworks to create the API stacks. The other layers are Media, Core Services and Core OS.

The main difference between Cocoa and Cocoa touch is that the UI classes and APIs aren't the same as Mac OS X, so instead of NSTextField, you have UITextField. Many of the classes share the same functionality and can be ported quite easily by simply changing the class name, though most will require some more changes, but usually nothing too heavy.

There are also some differences between the Foundation frameworks in Cocoa and Cocoa Touch, most commonly missing classes, eg, Cocoa has NSHost and Cocoa Touch doesn't.

Next….

4 comments:

  1. Great!! Thanks for sharing the useful blog about the difference between Cocoa, Cocoa Touch and Objective C.

    Mobile Application Development Company in Coimbatore | Android Application Development Company in Coimbatore

    ReplyDelete
  2. Forex Signals, MT4 and MT5 Indicators, Strategies, Expert Advisors, Forex News, Technical Analysis and Trade Updates in the FOREX IN WORLD

    Forex Signals Forex Strategies Forex Indicators Forex News Forex World

    ReplyDelete
  3. It was so informative.
    Electro World Television is a more used product in middle class families in Bangladesh. It ensures your eye health protection, reduces electricity and super speedy ram and processor.

    ReplyDelete