Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

AppKit

From Wikipedia, the free encyclopedia
Graphical user interface toolkit
icon
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "AppKit" – news ·newspapers ·books ·scholar ·JSTOR
(March 2024) (Learn how and when to remove this message)
Calendar, a macOS application using AppKit

AppKit (formallyApplication Kit)[1] is agraphical user interfacetoolkit. It initially served as the UI framework forNeXTSTEP.[2] Along withFoundation andDisplay PostScript, it became one of the core parts of theOpenStep specification of APIs. Later, AppKit and Foundation became part ofCocoa, theObjective-C API framework ofmacOS.GNUstep,GNU's implementation of the OpenStep/Cocoa API, also contains an implementation of the AppKit API.

AppKit comprises a collection ofObjective-Cclasses andprotocols that can be used to build an application in OpenStep/Cocoa. These classes can also be used inSwift 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 withInterface Builder. It relies heavily on patterns likereference types,delegation,notifications,target–action, andmodel–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, theFinder,TextEdit,Calendar, andPreview—use AppKit to provide their user interface.

macOS,iOS,iPadOS, andtvOS also support other UI frameworks, includingUIKit, which is derived from AppKit and uses many similar structures, andSwiftUI, aSwift-only declarative UI framework.

Prior tomacOS Catalina, macOS also supportedCarbon, a UI framework derived from theMacintosh Toolbox.

Classes

[edit]

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 likeQuartz,Core Animation, andMetal), 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, andNSView are all subclasses ofNSResponder
  • NSDocument: an object representing a document saved on disk that manages its display in a window
  • NSController: anabstract class implementing some functionality for acontroller, mediating between views and model objects

See also

[edit]

References

[edit]
  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.
  3. ^AppKit Framework Reference — Apple Developer

External links

[edit]
Versions
Mac OS X
OS X
macOS
Predecessors
Applications
Core
applications
Developer
Tools
Xcode
Former
Former
Utilities
Discontinued
Technologies,
user interface
Deprecated
Discontinued
  • Italics denote upcoming products.
  •  Category
Retrieved from "https://en.wikipedia.org/w/index.php?title=AppKit&oldid=1317281005"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp