Constants

Constants for use with multiple classes.

Topics

Global Variables

Color Space Names

Color-space names designate predefined color spaces.

Errors

Services Error Codes

These constants represent errors returned by application services.

Exceptions

Exception Names

Constants that name the exceptions that AppKit can raise.

Constants

static let announcement: NSAccessibilityNotificationUserInfoKey

The announcement, as a localized string. This key is required for NSAccessibility and should be used in conjunction with NSAccessibilityPriorityKey to help assistive apps determine the importance of the announcement.

static let announcementRequested: NSAccessibilityNotificationName

This notification is posted whenever an accessibility element needs to make an announcement to the user. This notification requires a userInfo dictionary with the key announcement and a localized string containing the announcement. To help an assistive app determine the importance of the announcement, add the appropriate priority to the userInfo dictionary.

static let applicationActivated: NSAccessibilityNotificationName

This notification is posted after the app has been activated. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let applicationDeactivated: NSAccessibilityNotificationName

This notification is posted after the app has been deactivated. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let applicationHidden: NSAccessibilityNotificationName

This notification is posted after the app is hidden. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let applicationShown: NSAccessibilityNotificationName

This notification is posted after the app is shown. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let cell: NSAccessibilityRole

The cell role in a table or matrix.

static let closeButton: NSAccessibilitySubrole

A window’s close button subrole.

static let contentList: NSAccessibilitySubrole

A subrole for content that is organized in a list, but is not in a list control or table view.

static let created: NSAccessibilityNotificationName

This notification is posted after an accessibility element is created. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let decrementArrow: NSAccessibilitySubrole

A decrement arrow subrole (the down arrow in a scroll bar).

static let decrementPage: NSAccessibilitySubrole

A decrement page subrole (the decrement area in the scroll track of a scroll bar).

static let definitionList: NSAccessibilitySubrole

A subrole for a content list in a webpage.

static let drawerCreated: NSAccessibilityNotificationName

This notification is posted after a drawer appears. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

let NSAccessibilityErrorCodeExceptionInfo: String

An integer error code used for debugging (as an NSNumber).

static let focusedUIElementChanged: NSAccessibilityNotificationName

This notification is posted after an accessibility element gains focus. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let focusedWindowChanged: NSAccessibilityNotificationName

This notification is posted after the key window changes. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let fullScreenButton: NSAccessibilitySubrole

A window’s full-screen button subrole.

static let growArea: NSAccessibilityRole

The grow (resize) area role in a window.

static let helpTagCreated: NSAccessibilityNotificationName

This notification is posted after a help tag appears. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let incrementArrow: NSAccessibilitySubrole

An increment arrow subrole (the up arrow in a scroll bar).

static let incrementPage: NSAccessibilitySubrole

An increment page subrole (the increment area in the scroll track of a scroll bar).

static let layoutArea: NSAccessibilityRole

The layout area role (a view, such as a graphic view, that contains visual elements that may not have any accessibility representation).

static let layoutChanged: NSAccessibilityNotificationName

This notification is posted after the UI changes in a way that requires the attention of an accessibility client. This notification should be accompanied by a userInfo dictionary with the key uiElements and an array containing the UI elements that have been added or changed. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let layoutItem: NSAccessibilityRole

The role for an item in a layout area.

static let mainWindowChanged: NSAccessibilityNotificationName

This notification is posted after the main window changes. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let minimizeButton: NSAccessibilitySubrole

A window’s minimize button subrole.

static let moved: NSAccessibilityNotificationName

This notification is posted after an accessibility element moves. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let priority: NSAccessibilityNotificationUserInfoKey

A priority level that can help an assistive app determine how to handle the corresponding notification (required for NSAccessibility). For example, VoiceOver uses the priority to decide whether to speak an announcement immediately or after the current speech has finished.

static let radioGroup: NSAccessibilityRole

The radio button group role.

static let resized: NSAccessibilityNotificationName

This notification is posted after an accessibility element’s size changes. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let rowCollapsed: NSAccessibilityNotificationName

This notification is posted after a row collapses. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let rowCountChanged: NSAccessibilityNotificationName

This notification is posted after a row is added or deleted. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let rowExpanded: NSAccessibilityNotificationName

This notification is posted after a row expands. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let selectedCellsChanged: NSAccessibilityNotificationName

This notification is posted after one or more cells in a cell-based table are selected or deselected. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let selectedChildrenChanged: NSAccessibilityNotificationName

This notification is posted after one or more child elements are selected or deselected. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let selectedChildrenMoved: NSAccessibilityNotificationName

This notification is posted after the selected items in a layout area move. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let selectedColumnsChanged: NSAccessibilityNotificationName

This notification is posted after one or more columns are selected or deselected. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let selectedRowsChanged: NSAccessibilityNotificationName

This notification is posted after one or more rows are selected or deselected. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let selectedTextChanged: NSAccessibilityNotificationName

This notification is posted after text is selected or deselected. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let sheetCreated: NSAccessibilityNotificationName

This notification is posted after a sheet appears. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let sortButton: NSAccessibilitySubrole

A sort button subrole for a table or outline view.

static let splitter: NSAccessibilityRole

The splitter bar role for a split view.

static let systemDialog: NSAccessibilitySubrole

A system dialog subrole (a system-generated dialog that floats on the top layer, regardless of which app is frontmost).

static let systemFloatingWindow: NSAccessibilitySubrole

A system floating window subrole (a system-generated panel).

static let systemWide: NSAccessibilityRole

The systemwide accessibility object role.

static let titleChanged: NSAccessibilityNotificationName

This notification is posted after an accessibility element’s title changes. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let toolbarButton: NSAccessibilitySubrole

A window’s toolbar button subrole.

static let uiElementDestroyed: NSAccessibilityNotificationName

This notification is posted after an accessibility element is destroyed. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let uiElements: NSAccessibilityNotificationUserInfoKey

An array of elements that are associated with the notification. For example, the NSAccessibility should use this key to identify the elements that have been added or changed.

static let unitsChanged: NSAccessibilityNotificationName

This notification is posted after the units in a layout area change. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let unknown: NSAccessibilityRole

An object whose role is unknown.

static let valueChanged: NSAccessibilityNotificationName

This notification is posted after an accessibility element’s value changes. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let windowCreated: NSAccessibilityNotificationName

This notification is posted after a new window appears. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let windowDeminiaturized: NSAccessibilityNotificationName

This notification is posted after a window is restored to full size from the Dock. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let windowMiniaturized: NSAccessibilityNotificationName

This notification is posted after a window is put in the Dock. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let windowMoved: NSAccessibilityNotificationName

This notification is posted after a window moves. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let windowResized: NSAccessibilityNotificationName

This notification is posted after a window’s size changes. Post this notification using the NSAccessibilityPostNotification(_:_:) function instead of an NSNotificationCenter instance.

static let zoomButton: NSAccessibilitySubrole

A window’s zoom button subrole.

let NSAllRomanInputSourcesLocaleIdentifier: String

A meta-locale identifier representing the set of Roman input sources available. You can pass [NSArray arrayWithObject: NSAllRomanInputSourcesLocaleIdentifier] to the allowedInputSourceLocales property to restrict allowed input sources to Roman only.

var NSApp: NSApplication!

Global constant for the shared app instance. This is the same as sending the NSApplication class the method shared message.

static let current: NSAppKitVersion

This value corresponds to one of the constants defined in AppKit framework version numbers.

static let macOS10_0: NSAppKitVersion

The AppKit framework included in OS X v10.0.

static let macOS10_1: NSAppKitVersion

The AppKit framework included in OS X v10.1.

static let macOS10_2: NSAppKitVersion

The AppKit framework included in OS X v10.2.

static let macOS10_2_3: NSAppKitVersion

The AppKit framework included in OS X v10.2.3.

static let macOS10_3: NSAppKitVersion

The AppKit framework included in OS X v10.3.

static let macOS10_3_2: NSAppKitVersion

The AppKit framework included in OS X v10.3.2.

static let macOS10_3_3: NSAppKitVersion

The AppKit framework included in OS X v10.3.3.

static let macOS10_3_5: NSAppKitVersion

The AppKit framework included in OS X v10.3.5.

static let macOS10_3_7: NSAppKitVersion

The AppKit framework included in OS X v10.3.7.

static let macOS10_3_9: NSAppKitVersion

The AppKit framework included in OS X v10.3.9.

static let macOS10_4: NSAppKitVersion

The AppKit framework included in OS X v10.4.

static let macOS10_4_1: NSAppKitVersion

The AppKit framework included in OS X v10.4.1.

static let macOS10_4_3: NSAppKitVersion

The AppKit framework included in OS X v10.4.3.

static let macOS10_4_4: NSAppKitVersion

The AppKit framework included in OS X v10.4.4.

static let macOS10_4_7: NSAppKitVersion

The AppKit framework included in OS X v10.4.7.

static let macOS10_5: NSAppKitVersion

The AppKit framework included in OS X v10.5.

static let macOS10_5_2: NSAppKitVersion

The AppKit framework included in OS X v10.5.2.

static let macOS10_5_3: NSAppKitVersion

The AppKit framework included in OS X v10.5.3.

static let macOS10_6: NSAppKitVersion

The AppKit framework included in OS X v10.6.

static let macOS10_7: NSAppKitVersion

The AppKit framework included in OS X v10.7.

static let macOS10_7_2: NSAppKitVersion

The AppKit framework included in OS X v10.7.2.

static let macOS10_7_3: NSAppKitVersion

The AppKit framework included in OS X v10.7.3.

static let macOS10_7_4: NSAppKitVersion

The AppKit framework included in OS X v10.7.4.

static let macOS10_8: NSAppKitVersion

The AppKit framework included in OS X v10.8.

class let launchIsDefaultUserInfoKey: String

The value for this key is an NSNumber containing a Boolean value. The value is false if the app was launched to open or print a file, to perform a Service action, if the app had saved state that will be restored, or if the app launch was in some other sense not a default launch. Otherwise its value will be true.

class let launchUserNotificationUserInfoKey: String

A key that indicates your app was launched because a user activated a notification in the Notification Center.

static let author: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSString object containing author name.

static let backgroundColor: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSColor object representing the document-wide page background color.

class let oldColorSpaceUserInfoKey: String

An NSColorSpace instance containing the old colorspace.

class let oldScaleFactorUserInfoKey: String

An NSNumber containing the old scale factor.

static let baseURL: NSAttributedString.DocumentReadingOptionKey

For HTML documents; NSURL containing base URL. Previous string constant was @"BaseURL"

static let bottomMargin: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSNumber object containing a float, in points.

static let category: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSString object containing the document’s category.

static let characterEncoding: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSNumber object containing integer specifying NSStringEncoding for the file; default for plain text is the default encoding. This key in options can specify the string encoding for reading the data. Upon return, the document attributes can contain the actual encoding used. For writing methods, this value is used for generating the plain text data.

static let characterEncoding: NSAttributedString.DocumentReadingOptionKey

For plain text documents; NSNumber containing the unsigned int NSStringEncoding to override any encoding specified in an HTML document. Previous string constant was @"CharacterEncoding".

static let characterShapeAttributeName: NSAttributedStringKey

An integer value. The value is interpreted as Apple Type Services kCharacterShapeType selector + 1.

Deprecated
static let cocoaVersion: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSNumber object containing a float. For RTF files only, stores the version of Cocoa with which the file was created. Absence of this value indicates RTF file not created by Cocoa or its predecessors.

static let interItemGapIndicator: NSCollectionView.SupplementaryElementKind

The element kind string assigned to the attributes object when it represents an inter-item gap.

static let sectionFooter: NSCollectionView.SupplementaryElementKind

A supplementary view that acts as a footer for a given section.

static let sectionHeader: NSCollectionView.SupplementaryElementKind

A supplementary view that acts as a header for a given section.

static let comment: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSString object containing document comments.

static let company: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSString object containing company or organization name.

static let converted: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSNumber object containing an int. Indicates whether the file was converted by a filter service.

static let copyright: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSString object containing document copyright info.

static let creationTime: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSDate object containing the creation date of the document; note that this is not the file system creation date of the file, but of the document.

static let cursor: NSAttributedStringKey

The value of this attribute is an NSCursor object. The default value is the cursor returned by the iBeam method

static let defaultAttributes: NSAttributedString.DocumentReadingOptionKey

For plain text documents; NSDictionary containing attributes to be applied to plain files. Previous string constant was @"DefaultAttributes".

static let defaultTabInterval: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSNumber object containing a float. Represents the document-wide default tab stop interval.

static let dictionaryApplication: NSView.DefinitionPresentationType

A possible value of the presentationType dictionary key that invokes Dictionary application to display the definition.

static let presentationType: NSView.DefinitionOptionKey

An optional key in the options dictionary that specifies the presentation type of the definition display. It can have a value of overlay or dictionaryApplication.

static let overlay: NSView.DefinitionPresentationType

A possible value of the presentationType dictionary key that produces a small overlay window at the string location,

static let bitsPerSample: NSDeviceDescriptionKey

The corresponding value is an NSNumber object containing an integer that gives the bit depth of the window’s raster image (2-bit, 8-bit, and so forth).

static let colorSpaceName: NSDeviceDescriptionKey

The corresponding value is an NSString object giving the name of the window’s color space.

static let isPrinter: NSDeviceDescriptionKey

If there is a corresponding value, this indicates that the display device is a printer.

static let isScreen: NSDeviceDescriptionKey

If there is a corresponding value, this indicates that the display device is a screen.

static let resolution: NSDeviceDescriptionKey

The corresponding value is an NSValue object containing a value of type NSSize that describes the window’s raster resolution in dots per inch (dpi).

static let size: NSDeviceDescriptionKey

The corresponding value is an NSValue object containing a value of type NSSize that gives the size of the window’s frame rectangle.

static let documentType: NSAttributedString.DocumentReadingOptionKey

One of the document types described in Document Types, indicating a document type to be forced when loading the document. Previous string constant was @"DocumentType".

static let dragPboard: NSPasteboard.Name

The pasteboard that stores data to be moved as the result of a drag operation.

Deprecated
static let icon: NSDraggingItem.ImageComponentKey

Key with a corresponding value that is an image of the item being dragged.

static let label: NSDraggingItem.ImageComponentKey

Key with a corresponding value that represents a textual label associate with the item, for example, a file name.

static let editor: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSString object containing name of person who last edited the document.

static let excludedElements: NSAttributedString.DocumentAttributeKey

An NSArray object containing NSString objects, representing HTML elements not to be used in generated HTML.

static let fileContents: NSPasteboard.PasteboardType

A representation of a file’s contents.

static let fileType: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSString object indicating which document type was used to interpret the document, specified as a UTI; for reading, this is available along with documentType, but for writing the two are mutually exclusive.

static let fileType: NSAttributedString.DocumentReadingOptionKey

The value of this attribute is an NSString object indicating a document type to be forced when loading the document, specified as a UTI string; mutually exclusive with documentType.

static let findPanelCaseInsensitiveSearch: NSPasteboard.PasteboardType.FindPanelSearchOptionKey

Boolean value specifying whether the search is case-insensitive. true specifies a case-insensitive search; otherwise, false.

static let findPanelSearchOptions: NSPasteboard.PasteboardType

Type for NSFindPanel metadata property list. Used with the NSPasteBoard method propertyList(forType:).

static let findPboard: NSPasteboard.Name

The pasteboard that holds information about the current state of the active application’s find panel.

Deprecated
static let cascadeList: NSFontDescriptor.AttributeName

An NSArray instance—each member of the array is a sub-descriptor.

static let characterSet: NSFontDescriptor.AttributeName

An NSCharacterSet instance that represents the set of Unicode characters covered by the font.

static let action: NSFontCollection.UserInfoKey

An action was taken. See NSFontCollectionAction Key Values for the possible values. An NSString.

static let disallowAutoActivationOption: NSFontCollectionMatchingOptionKey

An NSNumber object containing a Boolean value specifying that auto-activation should not be used to find missing fonts.

static let favorites: NSFontCollection.Name

Font collection of the user's preferred font descriptors.

static let includeDisabledFontsOption: NSFontCollectionMatchingOptionKey

An NSNumber object containing a Boolean value specifying whether disabled fonts should be included in the list of matching descriptors; true if they should be included, false otherwise.. When unspecified, CoreText assumes false. This option is intended only for font management applications. This option will make descriptor matching slower.

static let name: NSFontCollection.UserInfoKey

The font collection’s name. If renamed, this is the new name. An NSString.

static let oldName: NSFontCollection.UserInfoKey

Included as a value for the oldName key, if present. This is the previous name. An NSString.

static let recentlyUsed: NSFontCollection.Name

Font collection automatically maintained by NSFontManager.

static let removeDuplicatesOption: NSFontCollectionMatchingOptionKey

An NSNumber object containing a Boolean value controlling whether more than one copy of a font with the same PostScript name should be included in the list of matching descriptors.

static let user: NSFontCollection.Name

Per-user unmodifiable collection.

static let visibility: NSFontCollection.UserInfoKey

The visibly of the font collection. An NSNumber containing a value from the NSFontCollection.Visibility enum.

static let face: NSFontDescriptor.AttributeName

An optional NSString object that specifies the font face.

static let family: NSFontDescriptor.AttributeName

An optional NSString object that specifies the font family.

static let selectorIdentifier: NSFontDescriptor.FeatureKey

An NSNumber object specifying a font feature selector such as common ligature off, traditional character shape, and so on. See “Font Features“ in ATSUI Programming Guide for predefined feature selectors.

static let typeIdentifier: NSFontDescriptor.FeatureKey

An NSNumber object specifying a font feature type such as ligature, character shape, and so on. See “Font Features“ in ATSUI Programming Guide for predefined feature types.

static let fixedAdvance: NSFontDescriptor.AttributeName

An NSNumber instance containing a float value that overrides the glyph advancement specified by the font.

class var identityMatrix: UnsafePointer<CGFloat>

A transformation matrix useful as a parameter to init(descriptor:size:).

static let matrix: NSFontDescriptor.AttributeName

An NSAffineTransform instance that specifies the font’s transformation matrix.

static let name: NSFontDescriptor.AttributeName

An optional NSString object that specifies the font name.

static let fontPboard: NSPasteboard.Name

The pasteboard that holds font and character information and supports Copy Font and Paste Font commands that may be implemented in a text editor.

Deprecated
static let size: NSFontDescriptor.AttributeName

An optional NSNumber object, containing a float value, that specifies the font size.

static let slant: NSFontDescriptor.TraitKey

The relative slant angle value as an NSNumber object.

static let symbolic: NSFontDescriptor.TraitKey

The symbolic traits value as an NSNumber object.

static let traits: NSFontDescriptor.AttributeName

An NSDictionary instance instance fully describing font traits.

static let variation: NSFontDescriptor.AttributeName

An NSDictionary instance that describes the font’s variation axis.

static let defaultValue: NSFontDescriptor.VariationKey

The default axis value as an NSNumber object.

static let identifier: NSFontDescriptor.VariationKey

The axis identifier value as an NSNumber object.

static let maximumValue: NSFontDescriptor.VariationKey

The maximum axis value as an NSNumber object.

static let minimumValue: NSFontDescriptor.VariationKey

The minimum axis value as an NSNumber object.

static let name: NSFontDescriptor.VariationKey

The localized variation axis name.

static let visibleName: NSFontDescriptor.AttributeName

An optional NSString object that specifies the font’s visible name.

static let black: NSFont.Weight

The font weight for system black font.

static let bold: NSFont.Weight

The font weight for system bold font.

static let heavy: NSFont.Weight

The font weight for system heavy font.

static let light: NSFont.Weight

The font weight for system light font.

static let medium: NSFont.Weight

The font weight for system medium font.

static let regular: NSFont.Weight

The font weight for system regular font.

static let semibold: NSFont.Weight

The font weight for system semibold font.

static let thin: NSFont.Weight

The font weight for system thin font.

static let weight: NSFontDescriptor.TraitKey

The normalized weight value as an NSNumber object.

static let ultraLight: NSFont.Weight

The font weight for system ultra light font.

static let width: NSFontDescriptor.TraitKey

The relative inter-glyph spacing value as an NSNumber object.

static let fullScreenModeAllScreens: NSView.FullScreenModeOptionKey

Key whose corresponding value specifies whether the view should take over all screens.

static let fullScreenModeApplicationPresentationOptions: NSView.FullScreenModeOptionKey

Key whose corresponding value specifies the application presentation options.

static let fullScreenModeSetting: NSView.FullScreenModeOptionKey

Key whose corresponding value specifies the the full screen mode setting.

static let fullScreenModeWindowLevel: NSView.FullScreenModeOptionKey

Key whose corresponding value specifies the screen mode window level.

static let generalPboard: NSPasteboard.Name

The pasteboard that’s used for ordinary cut, copy, and paste operations.

Deprecated
static let glyphInfo: NSAttributedStringKey

The name of an NSGlyphInfo object.

static let destination: NSGraphicsContext.AttributeKey

Can be an instance of NSWindow or NSBitmapImageRep when creating a graphics context.

static let html: NSAttributedString.DocumentType

Hypertext Markup Language (HTML) document.

static let hyphenationFactor: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSNumber object containing a float; 0 = off, 1 = full hyphenation.

static let colorSyncProfileData: NSBitmapImageRep.PropertyKey

Identifies an NSData object containing the ColorSync profile data.

static let compressionFactor: NSBitmapImageRep.PropertyKey

Identifies an NSNumber object containing the compression factor of the image.

static let compressionMethod: NSBitmapImageRep.PropertyKey

Identifies an NSNumber object identifying the compression method of the image.

static let currentFrame: NSBitmapImageRep.PropertyKey

Identifies an NSNumber object containing the current frame for an animated GIF file.

static let currentFrameDuration: NSBitmapImageRep.PropertyKey

Identifies an NSNumber object containing the duration (in seconds) of the current frame for an animated GIF image.

static let ditherTransparency: NSBitmapImageRep.PropertyKey

Identifies an NSNumber object containing a boolean that indicates whether the image is dithered.

static let exifData: NSBitmapImageRep.PropertyKey

Identifies an NSDictionary object containing the EXIF data for the image.

static let fallbackBackgroundColor: NSBitmapImageRep.PropertyKey

Specifies the background color to use when writing to an image format (such as JPEG) that doesn't support alpha. The color's alpha value is ignored. The default background color, when this property is not specified, is white. The value of the property should be an NSColor object. This constant corresponds to the kCGImageDestinationBackgroundColor constant in Quartz.

static let frameCount: NSBitmapImageRep.PropertyKey

Identifies an NSNumber object containing the number of frames in an animated GIF file.

static let gamma: NSBitmapImageRep.PropertyKey

Identifies an NSNumber object containing the gamma value for the image.

static let CTM: NSImageRep.HintKey

Provides a context transform hint.

static let interpolation: NSImageRep.HintKey

Provides an interpolation hint.

static let interlaced: NSBitmapImageRep.PropertyKey

Identifies an NSNumber object containing a Boolean value that indicates whether the image is interlaced.

static let loopCount: NSBitmapImageRep.PropertyKey

Identifies an NSNumber object containing the number of loops to make when animating a GIF image.

static let actionTemplate: NSImage.Name

An action menu template image.

NSImageNameActionTemplate

static let addTemplate: NSImage.Name

An add item template image.

NSImageNameAddTemplate

static let advanced: NSImage.Name

Advanced preferences toolbar icon. Use in a preferences window only.

NSImageNameAdvanced

static let bluetoothTemplate: NSImage.Name

A Bluetooth template image.

NSImageNameBluetoothTemplate

static let bookmarksTemplate: NSImage.Name

Bookmarks image suitable for a template.

static let colorPanel: NSImage.Name

A color panel toolbar icon.

NSImageNameColorPanel

static let columnViewTemplate: NSImage.Name

A column view mode template image.

NSImageNameColumnViewTemplate

static let enterFullScreenTemplate: NSImage.Name

An enter full-screen mode template image.

NSImageNameEnterFullScreenTemplate

static let everyone: NSImage.Name

Permissions for all users.

NSImageNameEveryone

static let exitFullScreenTemplate: NSImage.Name

An exit full-screen mode template image.

NSImageNameExitFullScreenTemplate

static let flowViewTemplate: NSImage.Name

A cover flow view mode template image.

NSImageNameFlowViewTemplate

static let followLinkFreestandingTemplate: NSImage.Name

A link template image. You can use this image to implement a borderless button.

NSImageNameFollowLinkFreestandingTemplate

static let fontPanel: NSImage.Name

A font panel toolbar icon.

NSImageNameFontPanel

static let goLeftTemplate: NSImage.Name

A “go back” template image.

NSImageNameGoLeftTemplate

static let goRightTemplate: NSImage.Name

A “go forward” template image.

NSImageNameGoRightTemplate

static let homeTemplate: NSImage.Name

Home image suitable for a template.

static let iChatTheaterTemplate: NSImage.Name

An iChat Theater template image.

NSImageNameIChatTheaterTemplate

static let iconViewTemplate: NSImage.Name

An icon view mode template image.

NSImageNameIconViewTemplate

static let info: NSImage.Name

An information toolbar icon.

NSImageNameInfo

static let invalidDataFreestandingTemplate: NSImage.Name

An invalid data template image. Place this icon to the right of any fields containing invalid data. You can use this image to implement a borderless button.

NSImageNameInvalidDataFreestandingTemplate

static let leftFacingTriangleTemplate: NSImage.Name

A generic left-facing triangle template image.

NSImageNameLeftFacingTriangleTemplate

static let listViewTemplate: NSImage.Name

A list view mode template image.

NSImageNameListViewTemplate

static let lockLockedTemplate: NSImage.Name

A locked lock template image. Use to indicate locked content.

NSImageNameLockLockedTemplate

static let lockUnlockedTemplate: NSImage.Name

An unlocked lock template image. Use to indicate modifiable content that can be locked.

NSImageNameLockUnlockedTemplate

static let menuMixedStateTemplate: NSImage.Name

A horizontal dash. Drawing these outside of menus is discouraged.

static let menuOnStateTemplate: NSImage.Name

A check mark. Drawing these outside of menus is discouraged.

static let mobileMe: NSImage.Name

A MobileMe icon. Use of this image is discouraged; instead, use network.

static let multipleDocuments: NSImage.Name

A drag image for multiple items.

NSImageNameMultipleDocuments

static let pathTemplate: NSImage.Name

A path button template image.

NSImageNamePathTemplate

static let preferencesGeneral: NSImage.Name

General preferences toolbar icon. Use in a preferences window only.

NSImageNamePreferencesGeneral

static let quickLookTemplate: NSImage.Name

A Quick Look template image.

NSImageNameQuickLookTemplate

static let refreshFreestandingTemplate: NSImage.Name

A refresh template image. You can use this image to implement a borderless button.

NSImageNameRefreshFreestandingTemplate

static let removeTemplate: NSImage.Name

A remove item template image.

NSImageNameRemoveTemplate

static let revealFreestandingTemplate: NSImage.Name

A reveal contents template image. You can use this image to implement a borderless button.

NSImageNameRevealFreestandingTemplate

static let rightFacingTriangleTemplate: NSImage.Name

A generic right-facing triangle template image.

NSImageNameRightFacingTriangleTemplate

static let shareTemplate: NSImage.Name

A share view template image.

static let slideshowTemplate: NSImage.Name

A slideshow template image.

NSImageNameSlideshowTemplate

static let smartBadgeTemplate: NSImage.Name

A badge for a “smart” item.

NSImageNameSmartBadgeTemplate

static let statusAvailable: NSImage.Name

Small green indicator, similar to iChat’s available image.

static let statusPartiallyAvailable: NSImage.Name

Small yellow indicator, similar to iChat’s idle image.

static let statusUnavailable: NSImage.Name

Small red indicator, similar to iChat’s unavailable image.

static let stopProgressFreestandingTemplate: NSImage.Name

A stop progress template image. You can use this image to implement a borderless button.

NSImageNameStopProgressFreestandingTemplate

static let stopProgressTemplate: NSImage.Name

A stop progress button template image.

NSImageNameStopProgressTemplate

static let touchBarAddDetailTemplate: NSImage.Name

A template image for showing additional detail for an item.

static let touchBarAddTemplate: NSImage.Name

A template image for creating a new item.

static let touchBarAlarmTemplate: NSImage.Name

A template image for setting or showing an alarm.

static let touchBarAudioInputMuteTemplate: NSImage.Name

A template image for muting audio input or denoting that audio input is muted.

static let touchBarAudioInputTemplate: NSImage.Name

A template image for denoting audio input.

static let touchBarAudioOutputMuteTemplate: NSImage.Name

A template image for muting audio output or for denoting that audio output is muted.

static let touchBarAudioOutputVolumeHighTemplate: NSImage.Name

A template image for setting the audio output volume to a high level, or for denoting that it is set to a high level.

static let touchBarAudioOutputVolumeLowTemplate: NSImage.Name

A template image for setting the audio output volume to a low level, or for denoting that it is set to a low level.

static let touchBarAudioOutputVolumeMediumTemplate: NSImage.Name

A template image for setting the audio output volume to a medium level, or for denoting that it is set to a medium level.

static let touchBarAudioOutputVolumeOffTemplate: NSImage.Name

A template image for setting the audio output volume to silent, or for denoting that it is set to silent.

static let touchBarBookmarksTemplate: NSImage.Name

A template image for showing app-specific bookmarks.

static let touchBarColorPickerFill: NSImage.Name

A template image for showing a color picker so the user can select a fill color.

static let touchBarColorPickerFont: NSImage.Name

A template image for showing a color picker so the user can select a text color.

static let touchBarColorPickerStroke: NSImage.Name

A template image for showing a color picker so the user can select a stroke color.

static let touchBarCommunicationAudioTemplate: NSImage.Name

A template image for initiating or denoting audio communication.

static let touchBarCommunicationVideoTemplate: NSImage.Name

A template image for initiating or denoting video communication.

static let touchBarComposeTemplate: NSImage.Name

A template image for opening a new document or view in edit mode.

static let touchBarDeleteTemplate: NSImage.Name

A template image for deleting the current or selected item.

static let touchBarDownloadTemplate: NSImage.Name

A template image for downloading an item.

static let touchBarEnterFullScreenTemplate: NSImage.Name

A template image for entering full screen mode.

static let touchBarExitFullScreenTemplate: NSImage.Name

A template image for exiting full screen mode.

static let touchBarFastForwardTemplate: NSImage.Name

A template image for moving forward through media playback or slides.

static let touchBarFolderCopyToTemplate: NSImage.Name

A template image for copying an item to a destination.

static let touchBarFolderMoveToTemplate: NSImage.Name

A template image for moving an item to a destination.

static let touchBarFolderTemplate: NSImage.Name

A template image for opening or representing a folder.

static let touchBarGetInfoTemplate: NSImage.Name

A template image for showing information about an item.

static let touchBarGoBackTemplate: NSImage.Name

A template image for returning to the previous screen or location.

static let touchBarGoDownTemplate: NSImage.Name

A template image for moving to the next item in a list.

static let touchBarGoForwardTemplate: NSImage.Name

A template image for moving to the next screen or location.

static let touchBarGoUpTemplate: NSImage.Name

A template image for moving to the previous item in a list.

static let touchBarHistoryTemplate: NSImage.Name

A template image for showing history information, such as recent downloads.

static let touchBarIconViewTemplate: NSImage.Name

A template image for showing items in an icon view.

static let touchBarListViewTemplate: NSImage.Name

A template image for showing items in a list view.

static let touchBarMailTemplate: NSImage.Name

A template image for creating an email message.

static let touchBarNewFolderTemplate: NSImage.Name

A template image for creating a new folder.

static let touchBarNewMessageTemplate: NSImage.Name

A template image for creating a new message or for denoting the use of messaging.

static let touchBarOpenInBrowserTemplate: NSImage.Name

A template image for opening an item in the user’s browser.

static let touchBarPauseTemplate: NSImage.Name

A template image for pausing media playback or slides.

static let touchBarPlayPauseTemplate: NSImage.Name

A template image for toggling between playing and pausing media or slides.

static let touchBarPlayTemplate: NSImage.Name

A template image for starting or resuming playback of media or slides.

static let touchBarPlayheadTemplate: NSImage.Name

A template image for denoting the current playback position within a timeline track.

static let touchBarQuickLookTemplate: NSImage.Name

A template image for opening an item in Quick Look.

static let touchBarRecordStartTemplate: NSImage.Name

A template image for starting recording.

static let touchBarRecordStopTemplate: NSImage.Name

A template image for stopping recording or stopping playback of media or slides.

static let touchBarRefreshTemplate: NSImage.Name

A template image for refreshing displayed data.

static let touchBarRewindTemplate: NSImage.Name

A template image for moving backwards through media or slides.

static let touchBarRotateLeftTemplate: NSImage.Name

A template image for rotating an item counterclockwise.

static let touchBarRotateRightTemplate: NSImage.Name

A template image for rotating an item clockwise.

static let touchBarSearchTemplate: NSImage.Name

A template image for showing a search field or for initiating a search.

static let touchBarShareTemplate: NSImage.Name

A template image for sharing content with others directly or via social media.

static let touchBarSidebarTemplate: NSImage.Name

A template image for showing a sidebar in the current view.

static let touchBarSkipAhead15SecondsTemplate: NSImage.Name

A template image for skipping ahead 15 seconds during media playback.

static let touchBarSkipAhead30SecondsTemplate: NSImage.Name

A template image for skipping ahead 30 seconds during media playback.

static let touchBarSkipAheadTemplate: NSImage.Name

A template image for skipping to the next chapter or location during media playback.

static let touchBarSkipBack15SecondsTemplate: NSImage.Name

A template image for skipping back 15 seconds during media playback.

static let touchBarSkipBack30SecondsTemplate: NSImage.Name

A template image for skipping back 30 seconds during media playback.

static let touchBarSkipBackTemplate: NSImage.Name

A template image for skipping to the previous chapter or location during media playback.

static let touchBarSkipToEndTemplate: NSImage.Name

A template image for skipping to the end of media playback.

static let touchBarSkipToStartTemplate: NSImage.Name

A template image for skipping to the start of media playback.

static let touchBarSlideshowTemplate: NSImage.Name

A template image for starting a slideshow.

static let touchBarTagIconTemplate: NSImage.Name

A template image for applying a tag to an item.

static let touchBarTextBoldTemplate: NSImage.Name

A template image for making selected text bold.

static let touchBarTextBoxTemplate: NSImage.Name

A template image for inserting a text box.

static let touchBarTextItalicTemplate: NSImage.Name

A template image for making selected text italic.

static let touchBarTextJustifiedAlignTemplate: NSImage.Name

A template image for fully justifying text.

static let touchBarTextLeftAlignTemplate: NSImage.Name

A template image for aligning text to the left.

static let touchBarTextListTemplate: NSImage.Name

A template image for inserting a list or converting text to list form.

static let touchBarTextRightAlignTemplate: NSImage.Name

A template image for aligning text to the right

static let touchBarTextStrikethroughTemplate: NSImage.Name

A template image for striking through text.

static let touchBarTextUnderlineTemplate: NSImage.Name

A template image for underlining text.

static let touchBarUserAddTemplate: NSImage.Name

A template image for creating a new user account.

static let touchBarUserGroupTemplate: NSImage.Name

A template image for showing or representing a group of users.

static let touchBarUserTemplate: NSImage.Name

A template image for showing or representing user information.

static let touchBarVolumeDownTemplate: NSImage.Name

A template image for reducing the audio output volume.

static let touchBarVolumeUpTemplate: NSImage.Name

A template image for increasing the audio output volume.

static let trashEmpty: NSImage.Name

An image of the empty trash can.

static let trashFull: NSImage.Name

An image of the full trash can.

static let user: NSImage.Name

Permissions for a single user.

NSImageNameUser

static let userAccounts: NSImage.Name

User account toolbar icon. Use in a preferences window only.

NSImageNameUserAccounts

static let userGroup: NSImage.Name

Permissions for a group of users.

NSImageNameUserGroup

static let userGuest: NSImage.Name

Permissions for guests.

static let progressive: NSBitmapImageRep.PropertyKey

Identifies an NSNumber object containing a boolean that indicates whether the image uses progressive encoding.

static let rgbColorTable: NSBitmapImageRep.PropertyKey

Identifies an NSData object containing the RGB color table.

static let keywords: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSArray object containing NSString objects, containing keywords.

static let defaultHigh: NSLayoutConstraint.Priority

Priority level with which a button resists compressing its content.

static let defaultLow: NSLayoutConstraint.Priority

Priority level at which a button hugs its contents horizontally.

static let dragThatCanResizeWindow: NSLayoutConstraint.Priority

Appropriate priority level for a drag that may end up resizing the window.

static let dragThatCannotResizeWindow: NSLayoutConstraint.Priority

Priority level at which a split view divider, say, is dragged.

static let fittingSizeCompression: NSLayoutConstraint.Priority

When you send a fittingSize message to a view, the smallest size that is large enough for the view's contents is computed.

static let windowSizeStayPut: NSLayoutConstraint.Priority

Priority level for the window’s current size.

static let leftMargin: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSNumber object containing a float, in points.

static let manager: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSString object containing the name of the author's manager.

static let modificationTime: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSDate object containing the modification date of the document contents.

var NSOpenGLGOClearFormatCache: NSOpenGLGlobalOption

Resets the pixel format cache if true.

var NSOpenGLGOFormatCacheSize: NSOpenGLGlobalOption

Sets the size of the pixel format cache.

var NSOpenGLGORetainRenderers: NSOpenGLGlobalOption

Whether to retain loaded renderers in memory.

var NSOpenGLGOUseBuildCache: NSOpenGLGlobalOption

Whether to enable the function compilation block cache. This is off by default. It must be enabled at startup.

static let paperSize: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSValue object containing NSSize.

static let font: NSPasteboard.PasteboardType

Font and character information.

static let ruler: NSPasteboard.PasteboardType

Paragraph formatting information.

static let tiff: NSPasteboard.PasteboardType

Tag Image File Format (TIFF) data.

static let tabularText: NSPasteboard.PasteboardType

An NSString object containing tab-separated fields of text.

static let textFinderOptions: NSPasteboard.PasteboardType

Type for the Find panel metadata property list..

static let urlReadingContentsConformToTypes: NSPasteboard.ReadingOptionKey

Option for reading URLs to restrict the results to URLs with contents that conform to any of the provided UTI types.

static let urlReadingFileURLsOnly: NSPasteboard.ReadingOptionKey

Option for reading URLs to restrict the results to file URLs only.

static let detachToWindow: NSPopover.CloseReason

Specifies that the popover has been closed because it is being detached to a window.

class let closeReasonUserInfoKey: String

The userInfo key containing the reason for the willCloseNotification.

static let standard: NSPopover.CloseReason

Specifies that the popover has been closed in a standard way.

static let postScript: NSPasteboard.PasteboardType

Encapsulated PostScript (EPS) code.

static let prefixSpaces: NSAttributedString.DocumentAttributeKey

An NSNumber object containing an integer (default 0) representing the number of spaces per level by which to indent certain nested HTML elements.

static let allPages: NSPrintInfo.AttributeKey

An NSNumber object containing a Boolean value—if true, includes all pages in output.

static let allPresets: NSPrintPanel.JobStyleHint

Output appropriate to all graphics types. Equivalent to Core Printing’s kPMPresetGraphicsTypeAll.

static let bottomMargin: NSPrintInfo.AttributeKey

NSNumber, containing a floating-point value that specifies the bottom margin, in points.

static let copies: NSPrintInfo.AttributeKey

An NSNumber object containing an integer—the number of copies to spool.

static let detailedErrorReporting: NSPrintInfo.AttributeKey

An NSNumber object containing a Boolean value—if true, produce detailed reports when an error occurs.

static let faxNumber: NSPrintInfo.AttributeKey

An NSString object that specifies a fax number.

static let firstPage: NSPrintInfo.AttributeKey

An NSNumber object containing an integer value that specifies the first page in the print job.

static let headerAndFooter: NSPrintInfo.AttributeKey

An NSNumber object containing a Boolean value—if true, a standard header and footer are added outside the margins of each page.

static let horizontalPagination: NSPrintInfo.AttributeKey

NSNumber, containing a NSPrintingPaginationMode value.

static let horizontallyCentered: NSPrintInfo.AttributeKey

NSNumber, containing a Boolean value that is true if pages are centered horizontally.

static let jobDisposition: NSPrintInfo.AttributeKey

An NSString object that specifies the job disposition.

static let jobSavingFileNameExtensionHidden: NSPrintInfo.AttributeKey

A boolean NSNumber indicating whether the job’s file name extension should be hidden when the jobDisposition is save. The default is false.

static let jobSavingURL: NSPrintInfo.AttributeKey

An NSURL containing the location to which the job file will be saved when the jobDisposition is save.

static let lastPage: NSPrintInfo.AttributeKey

An NSNumber object containing an integer value that specifies the last page in the print job.

static let leftMargin: NSPrintInfo.AttributeKey

NSNumber, containing a floating-point value that specifies the left margin, in points.

static let mustCollate: NSPrintInfo.AttributeKey

An NSNumber object containing a Boolean value—if true, collates output.

static let noPresets: NSPrintPanel.JobStyleHint

Output excludes all graphics printing. Equivalent to Core Printing’s kPMPresetGraphicsTypeNone.

static let orientation: NSPrintInfo.AttributeKey

An NSNumber object containing an NSPrintingOrientation.

static let pagesAcross: NSPrintInfo.AttributeKey

An NSNumber object that specifies the number of logical pages to be tiled horizontally on a physical sheet of paper.

static let pagesDown: NSPrintInfo.AttributeKey

An NSNumber object that specifies the number of logical pages to be tiled vertically on a physical sheet of paper.

static let itemDescription: NSPrintPanel.AccessorySummaryKey

Used as a key to identify the current value of the accessory panel setting. The corresponding value should be an NSString object.

static let itemName: NSPrintPanel.AccessorySummaryKey

Used as a key to specify the name of the accessory panel setting. The corresponding value should be an NSString object.

static let paperName: NSPrintInfo.AttributeKey

An NSString object containing the paper name.

static let paperSize: NSPrintInfo.AttributeKey

An NSSize value specifying the height and width of paper in points.

static let photo: NSPrintPanel.JobStyleHint

Output contains photographic data.

static let printer: NSPrintInfo.AttributeKey

An NSPrinter object—the printer to use.

static let printerName: NSPrintInfo.AttributeKey

An NSString object that specifies the name of a printer.

static let reversePageOrder: NSPrintInfo.AttributeKey

An NSNumber object containing a Boolean value—if true, prints first page last.

static let rightMargin: NSPrintInfo.AttributeKey

NSNumber, containing a floating-point value that specifies the right margin, in points.

static let scalingFactor: NSPrintInfo.AttributeKey

Scale factor percentage before pagination.

static let selectionOnly: NSPrintInfo.AttributeKey

An NSNumber object containing a Boolean value—if true only the current selection is printed.

static let time: NSPrintInfo.AttributeKey

An NSDate object that specifies the time at which printing should begin.

static let topMargin: NSPrintInfo.AttributeKey

NSNumber, containing a floating-point value that specifies the top margin, in points.

static let verticalPagination: NSPrintInfo.AttributeKey

NSNumber, containing a NSPrintingPaginationMode value.

static let verticallyCentered: NSPrintInfo.AttributeKey

NSNumber, containing a Boolean value that is true if pages are centered vertically.

static let rtfd: NSAttributedString.DocumentType

Rich text format with attachments document.

static let readOnly: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSNumber object containing an integer. If missing or 0 or negative, not read only; 1 or more, read only.

static let rightMargin: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSNumber object containing a float, in points.

static let comparisonModifier: NSRuleEditor.PredicatePartKey

The corresponding value is an NSNumber object representing a NSComparisonPredicate.Modifier constant the of the predicate.

static let compoundType: NSRuleEditor.PredicatePartKey

The corresponding value is an NSNumber object representing a NSCompoundPredicate.LogicalType constant.

static let customSelector: NSRuleEditor.PredicatePartKey

The corresponding value is an NSString object representing a custom selector.

static let leftExpression: NSRuleEditor.PredicatePartKey

The corresponding value is an NSExpression object representing the left expression in the predicate.

static let operatorType: NSRuleEditor.PredicatePartKey

The corresponding value is an NSNumber object representing a NSComparisonPredicate.Operator constant.

static let options: NSRuleEditor.PredicatePartKey

The corresponding value is an NSNumber object representing a NSComparisonPredicate_Optionsbitfield.

static let rightExpression: NSRuleEditor.PredicatePartKey

The corresponding value is an NSExpression object representing the right expression in the predicate.

static let rulerPboard: NSPasteboard.Name

The pasteboard that holds information about paragraph formats in support of the Copy Ruler and Paste Ruler commands that may be implemented in a text editor.

Deprecated
class let clearRecentsMenuItemTag: Int

Identifies the menu item for clearing the current set of recent string searches in the menu.

class let noRecentsMenuItemTag: Int

Identifies the menu item that describes a lack of recent search strings (for example, “No recent searches”).

class let recentsMenuItemTag: Int

Identifies where recent search strings should appear in the “recents” menu group.

class let recentsTitleMenuItemTag: Int

Identifies the menu item that is the title of the menu group for recent search strings.

static let addToSafariReadingList: NSSharingService.Name

Add the content to the Safari Reading List.

static let composeEmail: NSSharingService.Name

Creates an email messages with the content.

static let composeMessage: NSSharingService.Name

Creates a Messages methods with the content.

static let postOnSinaWeibo: NSSharingService.Name

Posts the content on a Sina Weibo, Chinese microblogging (weibo) website. Akin to a hybrid of Twitter and Facebook.

static let postOnTencentWeibo: NSSharingService.Name

Posts the content on a Tencent Weibo, Chinese microblogging (weibo) website.

static let postVideoOnTudou: NSSharingService.Name

Posts the video on the video sharing service Tudou, based in the People's Republic of China.

static let postVideoOnVimeo: NSSharingService.Name

Posts the video on the video sharing service Vimeo.

static let postVideoOnYouku: NSSharingService.Name

Posts the video on the video sharing service Youku, based in the People's Republic of China.

static let useAsDesktopPicture: NSSharingService.Name

Replaces the user’s desktop image with the content.

static let useAsFacebookProfileImage: NSSharingService.Name

Replaces the user’s Facebook profile image with the provided image.

static let useAsLinkedInProfileImage: NSSharingService.Name

Replaces the user’s LinkedIn profile image with the provided image.

static let useAsTwitterProfileImage: NSSharingService.Name

Replaces the user’s Twitter profile image with the provided image.

static let characterMode: NSSpeechSynthesizer.SpeechPropertyKey

Get or set the synthesizer’s current text-processing mode. An NSString object that specifies whether the channel is currently in text input mode or phoneme input mode.The supported values are listed in Speaking Modes for NSSpeechInputModeProperty.

static let commandDelimiter: NSSpeechSynthesizer.SpeechPropertyKey

Set the embedded speech command delimiter characters to be used for the synthesizer. An NSDictionary object that contains the delimiter information. See “Command Delimiter Keys” for the keys you can use to specify values in this dictionary.

static let prefix: NSSpeechSynthesizer.SpeechPropertyKey.CommandDelimiterKey

The command delimiter string that prefixes a command, by default, this is [[.

static let suffix: NSSpeechSynthesizer.SpeechPropertyKey.CommandDelimiterKey

The command delimiter string that suffixes a command,by default, this is ]].

static let currentVoice: NSSpeechSynthesizer.SpeechPropertyKey

Set the current voice on the synthesizer to the specified voice. An NSDictionary object that contains the phoneme symbols and example words defined for the current synthesizer.

static let abbreviations: NSSpeechSynthesizer.DictionaryKey

An array of dictionary objects containing the keys entrySpelling and entryPhonemes.

static let entryPhonemes: NSSpeechSynthesizer.DictionaryKey

The phonemic representation of an entry. An NSString.

static let localeIdentifier: NSSpeechSynthesizer.DictionaryKey

The canonical locale identifier string describing the dictionary's locale. A locale is generally composed of three pieces of ordered information: a language code, a region code, and a variant code. Refer to documentation about NSLocale or Internationalization and Localization Guide for more information

static let modificationDate: NSSpeechSynthesizer.DictionaryKey

A string representation of the dictionary's last modification date in the international format (YYYY-MM-DD HH:MM:SS ±HHMM). If the same word appears across multiple dictionaries, the one from the dictionary with the most recent date will be used.

static let count: NSSpeechSynthesizer.SpeechPropertyKey.ErrorKey

The number of errors that have occurred in processing the current text string, since the last call to object(forProperty:) with the errors property. An NSNumber

static let newestCharacterOffset: NSSpeechSynthesizer.SpeechPropertyKey.ErrorKey

The position in the text string of the most recent error that occurred since the last call to object(forProperty:) with the errors property. An NSNumber.

static let newestCode: NSSpeechSynthesizer.SpeechPropertyKey.ErrorKey

The error code of the most recent error that occurred since the last call to object(forProperty:) with the errors property. An NSNumber

static let oldestCharacterOffset: NSSpeechSynthesizer.SpeechPropertyKey.ErrorKey

The position in the text string of the first error that occurred since the last call to object(forProperty:) with the errors property. An NSNumber

static let oldestCode: NSSpeechSynthesizer.SpeechPropertyKey.ErrorKey

The error code of the first error that occurred since the last call to object(forProperty:) with the errors property. An NSNumber

static let errors: NSSpeechSynthesizer.SpeechPropertyKey

Get speech-error information for the synthesizer. An NSDictionary object that contains speech-error information. See NSSpeechErrorProperty Dictionary Keys for a description of the keys present in the dictionary.

static let inputMode: NSSpeechSynthesizer.SpeechPropertyKey

Get or set the synthesizer’s current text-processing mode. An NSString object that specifies whether the channel is currently in text input mode or phoneme input mode.The supported values are listed in Speaking Modes for NSSpeechInputModeProperty.

static let literal: NSSpeechSynthesizer.SpeechPropertyKey.Mode

Indicates that each digit or character is spoken literally (so that 12 is spoken as "one, two", or the word "cat" is spoken as "C A T").

static let normal: NSSpeechSynthesizer.SpeechPropertyKey.Mode

Indicates that the synthesizer assembles digits into numbers (so that 12 is spoken as "twelve") and text into words.

static let phoneme: NSSpeechSynthesizer.SpeechPropertyKey.Mode

Indicates that the synthesizer is in phoneme-processing mode. When in phoneme-processing mode, a text buffer is interpreted to be a series of characters representing various phonemes and prosodic controls.

static let text: NSSpeechSynthesizer.SpeechPropertyKey.Mode

Indicates that the synthesizer is in text-processing mode.

static let numberMode: NSSpeechSynthesizer.SpeechPropertyKey

Get or set the synthesizer’s current number-processing mode. An NSString object that specifies whether the synthesizer is currently in normal or literal number-processing mode. The constants normal and literal are the possible values of this string.

static let outputToFileURL: NSSpeechSynthesizer.SpeechPropertyKey

Set the speech output destination to a file or to the computer’s speakers. An NSURL object. To write the speech output to a file, use the file’s NSURL; to generate the sound through the computer’s speakers, use NULL.

static let example: NSSpeechSynthesizer.SpeechPropertyKey.PhonemeInfoKey

An example word that illustrates the use of the phoneme.

static let hiliteEnd: NSSpeechSynthesizer.SpeechPropertyKey.PhonemeInfoKey

The character offset into the example word that identifies the location of the end of the phoneme.

static let hiliteStart: NSSpeechSynthesizer.SpeechPropertyKey.PhonemeInfoKey

The character offset into the example word that identifies the location of the beginning of the phoneme.

static let phonemeSymbols: NSSpeechSynthesizer.SpeechPropertyKey

Get a list of phoneme symbols and example words defined for the synthesizer. An NSDictionary object that contains the phoneme symbols and example words defined for the current synthesizer

static let pitchBase: NSSpeechSynthesizer.SpeechPropertyKey

Get or set a synthesizer’s baseline speech pitch. An NSNumberobject that specifies the baseline speech pitch.

static let pitchMod: NSSpeechSynthesizer.SpeechPropertyKey

Get or set a synthesizer’s pitch modulation. An NSNumber object that specifies the synthesizer’s pitch modulation.

static let rate: NSSpeechSynthesizer.SpeechPropertyKey

Get or set a synthesizer’s speech rate. An NSNumber object that specifies the synthesizer’s speaking rate.

static let recentSync: NSSpeechSynthesizer.SpeechPropertyKey

Get the message code for the most recently encountered synchronization command. An NSNumber object that specifies the most recently encountered synchronization command.

static let reset: NSSpeechSynthesizer.SpeechPropertyKey

Set a synthesizer back to its default state. There is no value associated with this property; to reset the channel to its default state, set the key to NULL.

static let numberOfCharactersLeft: NSSpeechSynthesizer.SpeechPropertyKey.StatusKey

The number of characters left in the input string of text.

static let outputBusy: NSSpeechSynthesizer.SpeechPropertyKey.StatusKey

Indicates whether the synthesizer is currently producing speech.

static let outputPaused: NSSpeechSynthesizer.SpeechPropertyKey.StatusKey

Indicates whether speech output in the synthesizer has been paused by sending the message pauseSpeaking(at:).

static let phonemeCode: NSSpeechSynthesizer.SpeechPropertyKey.StatusKey

Indicates that the synthesizer is in phoneme-processing mode. When in phoneme-processing mode, a text buffer is interpreted to be a series of characters representing various phonemes and prosodic controls.

static let status: NSSpeechSynthesizer.SpeechPropertyKey

Get speech-status information for the synthesizer. An NSDictionary that contains speech-status information for the synthesizer. See NSSpeechStatusProperty Dictionary Keys for a description of the keys present in the dictionary.

static let synthesizerInfo: NSSpeechSynthesizer.SpeechPropertyKey

Get information about the speech synthesizer being used on the specified synthesizer. An NSDictionary object that contains information about the speech synthesizer being used on the specified synthesizer. See Speech Synthesizer Property Keys for a description of the keys present in the dictionary.

static let volume: NSSpeechSynthesizer.SpeechPropertyKey

Get or set the speech volume for a synthesizer. An NSNumber that specifies the synthesizer’s speech volume.

class let squareLength: CGFloat

Sets the status item length to the status bar thickness.

static let subject: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSString object containing subject of document.

static let superscript: NSAttributedStringKey

The value of this attribute is an NSNumber object containing an integer. The default value is 0.

static let columnTerminators: NSTextTab.OptionKey

The value is an NSCharacterSet object.

class let rowViewIdentifier: NSUserInterfaceItemIdentifier

The key associated with the identifier in the NIB containing the template row view.

static let documentAuthor: NSSpellChecker.OptionKey

An NSString containing the name of an author to be associated with the document

static let documentTitle: NSSpellChecker.OptionKey

An NSString containing the title to be associated with the document.

static let documentURL: NSSpellChecker.OptionKey

An NSURL to be associated with the document.

static let orthography: NSSpellChecker.OptionKey

An NSOrthography instance indicating an orthography to be used as a starting point for orthography checking, or as the orthography if orthography checking is not enabled.

static let quotes: NSSpellChecker.OptionKey

An NSArray containing four strings to be used with quote (opening double quote, closing double quote, opening single quote, and closing single quote in that order); if not specified, values will be taken from user's preferences.

static let referenceDate: NSSpellChecker.OptionKey

An NSDate to be associated with the document, used as a referent for relative dates; if not specified, the current date will be used.

static let referenceTimeZone: NSSpellChecker.OptionKey

An NSTimeZone to be associated with the document, used as a reference for dates without time zones; if not specified, the current time zone will be used.

static let replacements: NSSpellChecker.OptionKey

An NSDictionary containing replacements to be used with NSTextCheckingTypeReplacement; if not specified, values will be taken from user's preferences.

static let letterpressStyle: NSAttributedString.TextEffectStyle

A graphical text effect giving glyphs the appearance of letterpress printing, in which type is pressed into the paper.

static let textEncodingName: NSAttributedString.DocumentAttributeKey

An NSString object containing the name, IANA or otherwise, of a text encoding to be used; mutually exclusive with characterEncoding.

static let textEncodingName: NSAttributedString.DocumentReadingOptionKey

NSString containing the name, IANA or otherwise, of a text encoding to override any encoding specified in an HTML document. Mutually exclusive with @"CharacterEncoding". Previous string constant was @"TextEncodingName".

static let textFinderCaseInsensitiveKey: NSPasteboard.PasteboardType.TextFinderOptionKey

The value of this key must be an Boolean NSValue object that indicates if the search should be case sensitive.

static let textFinderMatchingTypeKey: NSPasteboard.PasteboardType.TextFinderOptionKey

The value of this key must be an NSNumber containing an NSTextFinder.MatchingType value that indicates the type of search matching to perform..

static let range: NSAttributedString.TextLayoutSectionKey

An NSValue object containing an NSRange representing a character range. The default value is a range covering the entire string.

static let textSizeMultiplier: NSAttributedString.DocumentReadingOptionKey

Specifies a scale factor for font sizes. NSNumber containing float, default 1.0; for HTML only, corresponding to WebView's textSizeMultiplier.

static let timeout: NSAttributedString.DocumentReadingOptionKey

NSNumber containing float. Time in seconds to wait for a document to finish loading. Previous string constant was @"Timeout".

static let title: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSString object containing document title.

static let toolTip: NSAttributedStringKey

The value of this attribute is an NSString object containing the tooltip text. The default value is nil, indicating no tooltip is available.

static let customizeToolbar: NSToolbarItem.Identifier

The Customize item. Shows the customization palette.

static let print: NSToolbarItem.Identifier

The Print item. Sends printDocument: to firstResponder.

static let showColors: NSToolbarItem.Identifier

The Colors item. Shows the color panel.

static let showFonts: NSToolbarItem.Identifier

The Fonts item. Shows the font panel.

static let toggleSidebar: NSToolbarItem.Identifier

The standard toolbar item identifier for a sidebar. It sends toggleSidebar: to firstResponder.

static let topMargin: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSNumber object containing a float, in points.

let NSUserActivityDocumentURLKey: String

The key identifying the document associated with a user activity.

static let usesScreenFontsDocumentAttribute: NSAttributedStringKey

The value of this attribute is an NSNumber object containing a Boolean; this attribute corresponds to the usesScreenFonts method of NSLayoutManager; if absent, follows the system default setting

Deprecated
class let variableLength: CGFloat

Makes the status item length dynamic, adjusting to the width of its contents.

static let effect: NSViewAnimation.Key

An effect to apply to the animation.

static let endFrame: NSViewAnimation.Key

The size and location of the window or view at the end of the animation.

static let fadeIn: NSViewAnimation.EffectName

Specifies a fade-in type of effect.

static let fadeOut: NSViewAnimation.EffectName

Specifies a fade-out type of effect.

static let startFrame: NSViewAnimation.Key

The size and location of the window or view at the start of the animation.

static let target: NSViewAnimation.Key

The target of the animation.

static let viewMode: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSValue object containing an int; 0 = normal; 1 = page layout (use value of @"PaperSize").

static let viewSize: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSValue object containing NSSize.

static let viewZoom: NSAttributedString.DocumentAttributeKey

The value of this attribute is an NSValue object containing a float. 100 = 100% zoom.

static let age: NSSpeechSynthesizer.VoiceAttributeKey

The perceived age (in years) of the voice. An NSString

static let demoText: NSSpeechSynthesizer.VoiceAttributeKey

A demonstration string to speak. An NSString

static let gender: NSSpeechSynthesizer.VoiceAttributeKey

The perceived gender of the voice. The supported values are listed in Voice Gender Keys. An NSString

static let neuter: NSSpeechSynthesizer.VoiceGender

A neutral voice (or a novelty voice with a humorous or whimsical quality).

static let identifier: NSSpeechSynthesizer.VoiceAttributeKey

A unique string identifying the voice. The identifiers of the system voices are listed in Listing 1.

static let individuallySpokenCharacters: NSSpeechSynthesizer.VoiceAttributeKey

A list of unicode character id ranges that define the unicode characters that can be spoken in character-by-character mode by this voice. ach list entry is a dictionary containing two keys: "UnicodeCharBegin", an integer value containing the beginning unicode id of this range; and "UnicodeCharBegin", an integer value containing the ending unicode id of this range.

static let name: NSSpeechSynthesizer.VoiceAttributeKey

The name of the voice suitable for display. An NSString.

static let supportedCharacters: NSSpeechSynthesizer.VoiceAttributeKey

A list of unicode character id ranges that define the unicode characters supported by this voice. a dictionary containing two keys: "UnicodeCharBegin", an integer value containing the beginning unicode id of this range; and "UnicodeCharBegin", an integer value containing the ending unicode id of this range. The synthesizer will convert or ignore any characters not contained in the range of supported characters.

static let webPreferences: NSAttributedString.DocumentReadingOptionKey

WebPreferences; for HTML only, specifies a WebPreferences object. If not present, a default set of preferences is used. Previous string constant was @"WebPreferences".

static let webResourceLoadDelegate: NSAttributedString.DocumentReadingOptionKey

NSObject; for HTML only, specifies an object to serve as the web resource loading delegate.

static let wordML: NSAttributedString.DocumentType

Microsoft Word XML (WordML schema) document.

class let applicationUserInfoKey: String

The value corresponding to this key is an instance of NSRunningApplication that reflects the affected app.

static let compressOperation: NSWorkspace.FileOperationName

Compress file. This operation always returns an error.

Deprecated
static let copyOperation: NSWorkspace.FileOperationName

Copy file to destination. Behaves the same as copyPath:toPath:handler:.

Deprecated
static let decompressOperation: NSWorkspace.FileOperationName

Decompress file. This operation always returns an error.

Deprecated
static let decryptOperation: NSWorkspace.FileOperationName

Decrypt file. This operation always returns an error.

Deprecated
static let allowClipping: NSWorkspace.DesktopImageOptionKey

The value is an NSNumber containing a BOOL, which affects the interpretation of Proportional scaling types. A false value will make the image fully visible, but there may be empty space on the sides or top and bottom. A true value will cause the image to fill the entire screen, but the image may be clipped. If this is not specified, false is assumed. Non-proportional scaling types ignore this value.

static let fillColor: NSWorkspace.DesktopImageOptionKey

The value is an NSColor, which is used to fill any empty space around the image. If not specified, a default value is used. Currently, only colors that use or can be converted to use calibratedRGB are supported, and any alpha value is ignored.

static let imageScaling: NSWorkspace.DesktopImageOptionKey

The value is an NSNumber containing an NSImageScaling constant as declared in NSCell. If this is not specified, scaleProportionallyUpOrDown is used. scaleProportionallyDown is not currently supported.

static let duplicateOperation: NSWorkspace.FileOperationName

Duplicate file in source directory.

Deprecated
static let encryptOperation: NSWorkspace.FileOperationName

Encrypt file. This operation always returns an error.

Deprecated
static let appleEvent: NSWorkspace.LaunchConfigurationKey

The value is the first NSAppleEventDescriptor to send to the new app. If an instance of the app is already running, this is sent to that app.

static let architecture: NSWorkspace.LaunchConfigurationKey

The value is an NSNumber containing an Mach-O Architecture constant. Ignored if a new instance of the app is not launched.

static let arguments: NSWorkspace.LaunchConfigurationKey

The value is an NSArray of NSStrings, passed to the new app in the argv parameter. Ignored if a new instance of the app is not launched. This constant is not available to sandboxed apps.

static let environment: NSWorkspace.LaunchConfigurationKey

The value is an NSDictionary, mapping NSStrings to NSStrings, containing environment variables to set for the new app. Ignored if a new instance of the app is not launched. This constant is not available to sandboxed apps.

static let linkOperation: NSWorkspace.FileOperationName

Create hard link to file in destination. Behaves the same as linkPath:toPath:handler:.

Deprecated
static let moveOperation: NSWorkspace.FileOperationName

Move file to destination. Behaves the same as movePath:toPath:handler:.

Deprecated
static let recycleOperation: NSWorkspace.FileOperationName

Move file to trash. The file is moved to the trash folder on the volume containing the file using the same semantics as NSWorkspaceMoveOperation. If a file with the same name currently exists in the trash folder, the new file is renamed. If no trash folder exists on the volume containing the file, the operation fails.

Deprecated
class let localizedVolumeNameUserInfoKey: String

NSString containing the user-visible name of the volume.

class let oldLocalizedVolumeNameUserInfoKey: String

NSString containing the old user-visible name of the volume

class let oldVolumeURLUserInfoKey: String

NSURL containing the old mount path of the volume

class let volumeURLUserInfoKey: String

NSURL containing the mount path of the volume.

let NSTextMovementUserInfoKey: String

The userInfo dictionary key for the didEndEditingNotification notification.