AppKit

Calendar, a macOS application using AppKit.

AppKit (formally Application Kit)[1] is a graphical user interface toolkit. It initially served as the UI framework for NeXTSTEP.[2] Along with Foundation and Display PostScript, it became one of the core parts of the OpenStep specification of APIs. Later, AppKit and Foundation became part of Cocoa, the Objective-C API framework of macOS. GNUstep, GNU's implementation of the OpenStep/Cocoa API, also contains an implementation of the AppKit API.

AppKit comprises a collection of Objective-C classes and protocols that can be used to build an application in OpenStep/Cocoa. These classes can also be used in Swift through its Objective-C bridge. Xcode has built-in functionality for developing a Cocoa application using AppKit, including the ability to visually design user interfaces with Interface Builder. It relies heavily on patterns like reference types, delegation, notifications, target–action, and model–view–controller. A sign of the NeXTSTEP heritage, AppKit's classes and protocols still use the "NS" prefix.

Most of the applications bundled with macOS—for example, the Finder, TextEdit, Calendar, and Preview—use AppKit to provide their user interface.

macOS, iOS, iPadOS, and tvOS also support other UI frameworks, including UIKit, which is derived from AppKit and uses many similar structures, and SwiftUI, a Swift-only declarative UI framework.

Prior to macOS Catalina, macOS also supported Carbon, a UI framework derived from the Macintosh Toolbox.

  1. ^ AppKit Release Notes for macOS 10.13. Apple Documentation Archive. Retrieved 23 Oct 2017.
  2. ^ The legacy of NeXT lives on in OS XArs Technica, Dec 2012.