cocoa

Getting started with cocoa

Remarks#

This section provides an overview of what cocoa is, and why a developer might want to use it.

It should also mention any large subjects within cocoa, and link out to the related topics. Since the Documentation for cocoa is new, you may need to create initial versions of those related topics.

Installation or Setup

Cocoa is Apple’s API to develop apps for macOS, formerly known as OS X.
Cocoa is a container framework, and contains three sub-frameworks.

  • Foundation
  • AppKit
  • CoreData

Cocoa Touch is Apple’s version of Cocoa to develop apps for iOS, watchOS and tvOS.
Cocoa Touch contains the same sub-frameworks, except instead of AppKit, it contains UIKit.

For Apps without any UI, it is recommended to simply only include Foundation instead of Cocoa

These apps are typically written in Objective-C or Swift.

The first thing you want to install is Xcode, Apple’s IDE for building macOS, iOS, watchOS and tvOS applications.

It is available on the Mac App Store for free.

Pre-release test versions of Xcode are available from the developer website in the months following WWDC, which is required to test bleeding edge compiler/language features. These can be installed side by side with the production version of Xcode available in the Mac App Store.

After installing Xcode, you can start writing native apps for the Mac, iOS, watchOS or tvOS.

For details of getting started with a Mac App, see Introduction to OS X.

For details of getting started with an iOS App, see Getting Started with iOS.


This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow