Core App

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



class NSApplication

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

class NSRunningApplication

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

protocol NSApplicationDelegate

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


class NSWorkspace

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

AppKit Versions

Perform runtime checks to determine which version of AppKit is available.

AppKit Errors

These constants represent errors generated by NSAttributedString.


class NSPasteboard

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

class NSPasteboardItem

An item on a pasteboard.

protocol NSPasteboardReading

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

protocol NSPasteboardWriting

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

protocol NSPasteboardItemDataProvider

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

Data Management

Protecting the User’s Privacy

Secure personal data, and respect user preferences for how data is used.

User Preferences

class NSUserDefaultsController

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

App Services

class NSSharingService

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

class NSSharingServicePicker

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

protocol NSSharingServicePickerDelegate

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

protocol NSServicesMenuRequestor

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

App Help

class NSHelpManager

An object for displaying online help for an app.

protocol NSUserInterfaceItemSearching

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

See Also

App Structure

Documents, Files, and iCloud

Manage your app's data using documents and store it to the local file system or to iCloud.

Cocoa Bindings

Automatically synchronize your data model with your app's interface using 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.