Wikipedia

Application Kit

Also found in: Acronyms.
Calendar, a macOS application using AppKit.

The Application Kit, usually called AppKit,[1] is a graphical user interface toolkit from NeXTSTEP.[2] Along with Foundation and Display PostScript, it is one of the core parts of the OpenStep specification of APIs. AppKit and Foundation were inherited into Cocoa, the Objective-C API framework of macOS. GNUstep, GNU's implementation of the OpenStep/Cocoa API, also contains an AppKit.

The 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.

Classes

Of the more than 170 classes included in the Application Kit, the following classes form the core:[3]

  • NSApplication: a singleton object that represents the application as a whole and tracks its windows and other global state
  • NSWindow: an object representing a window on screen, it holds a hierarchy of views
  • NSView: an object representing a rectangular region; it may draw UI content of its own (using drawing engines like Quartz, Core Animation, and Metal), and it may also hold a subtree of other views
  • NSResponder: an object that can respond to events during the application's lifetime; NSApplication, NSWindow, and NSView are all subclasses of NSResponder
  • NSDocument: an object representing a document saved on disk that manages its display in a window
  • NSController: an abstract class implementing some functionality for a controller, mediating between views and model objects

See also

References

External links

This article is copied from an article on Wikipedia® - the free encyclopedia created and edited by its online user community. The text was not checked or edited by anyone on our staff. Although the vast majority of Wikipedia® encyclopedia articles provide accurate and timely information, please do not assume the accuracy of any particular article. This article is distributed under the terms of GNU Free Documentation License.

Copyright © 2003-2025 Farlex, Inc Disclaimer
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional.