Core App

Learn about the objects that you use to interact with the system.

Topics

Application

NSApplication

An object that manages an app’s main event loop and resources used by all of that app’s objects.

NSRunningApplication

An object that can manipulate and provide information for a single instance of an app.

NSApplicationDelegate

A set of methods that delegates of NSApplication objects can implement.

Environment

NSWorkspace

A workspace that can launch other apps and perform a variety of file-handling services.

Documents

NSDocumentController

An object that manages an app's documents.

NSPersistentDocument

A document object that can integrate with Core Data.

NSDocument

An abstract class that defines the interface for macOS documents.

Pasteboard

NSPasteboard

An object that transfers data to and from the pasteboard server.

NSPasteboardItem

An item on a pasteboard.

NSPasteboardReading

A set of methods that defines the interface for initializing an object from a pasteboard.

NSPasteboardWriting

A set of methods that defines the interface for retrieving a representation of an object that can be written to a pasteboard.

NSPasteboardItemDataProvider

A set of methods implemented by the data provider of a pasteboard item to provide the data for a particular UTI type.

User Preferences

NSUserDefaultsController

A controller that accesses user preference information for your app from the user’s defaults database.

App Services

NSSharingService

A service that lets users share content with other services, such as social media services, or apps, such as Mail and Safari.

NSSharingServiceDelegate

A set of methods that you use to customize the position and animation of a share sheet, and to be notified whether the item is successfully shared.

NSSharingServicePicker

A list of sharing services from which the user can choose.

NSSharingServicePickerDelegate

A set of methods that you use to customize the service picker behavior.

NSServicesMenuRequestor

A set of methods that support interaction with items users can share through a sharing service.

App Help

NSHelpManager

An object for displaying online help for an app.

NSUserInterfaceItemSearching

A set of methods an app can implement to provide Spotlight for Help for its own custom help data.

See Also

App Structure

Data Management

Manage your app's data through file access and Cocoa bindings.

Resource Management

Manage the storyboards and nib files containing your app's user interface, and learn how to load data that is stored in resource files.