AppKit Constants

Overview

There are three types of constant in this document: global variables, errors, and exceptions.

Overview

This document describes the constants defined in the Application Kit framework that are not defined in, or are not described in, a document for an individual class.

See AppKit Data Types for descriptions of other constants defined in enumerations.

Symbols

Global Variables

Color Space Names

Color-space names designate predefined color spaces.

Grayscale Values

These constants are the standard gray values for the 2-bit deep grayscale color space.

Errors

Attributed String Errors

These constants represent errors generated by NSAttributedString.

Services Error Codes

These constants represent errors returned by application services.

Exceptions

Application Kit Exception Names

These constants name the exceptions that the Application Kit can raise.

Constants

let NSAcceleratorButton: NSButtonType

On pressure-sensitive systems, such as systems with the Force Touch trackpad, an accelerator button sends repeating actions as pressure changes occur. It stops sending actions when the user releases pressure entirely. A media player app, for example, might implement an accelerator button in order to allow a user to adjust the speed of fast forward or rewind with variable pressure. In this case, actions are sent to the app to indicate when pressure on the button has changed. The app would then determine the amount of pressure currently applied, and adjust playback speed accordingly.

let NSCircularBezelStyle: NSBezelStyle

A round button with room for a small icon or a single character.

let NSDisclosureBezelStyle: NSBezelStyle

A bezel style for use with a disclosure triangle.

let NSHelpButtonBezelStyle: NSBezelStyle

A round button with a question mark providing the standard help button look.

let NSInlineBezelStyle: NSBezelStyle

The inline bezel style contains a solid round-rect border background. It can be used to create an "unread" indicator in an outline view, or another inline button in a tableview, such as a stop progress button in a download panel. Use text for an unread indicator, and a template image for other buttons.

let NSMomentaryChangeButton: NSButtonType

When the button is clicked, the alternate (on state) image and alternate title are displayed.

let NSMomentaryLightButton: NSButtonType

When the button is clicked (on state), it appears illuminated. If the button has borders, it may also appear recessed. When the button is released, it returns to its normal (off) state.

let NSMomentaryPushInButton: NSButtonType

When the user clicks the button (on state), the button appears illuminated.

let NSMultiLevelAcceleratorButton: NSButtonType

A multilevel accelerator button is a variation of a normal accelerator button that allows for a configurable number of stepped pressure levels. As each one is reached, the user receives light tactile feedback and an action is sent.

let NSAWTEventType: NSEventSubtype

An event type used to support Java applications.

Deprecated
let NSAccessibilityActivationPointAttribute: Stringlet NSAccessibilityAlternateUIVisibleAttribute: String
let NSAccessibilityAnnouncementKey: String

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.

let NSAccessibilityAnnouncementRequestedNotification: String

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 NSAccessibilityAnnouncementKey and a localized string containing the announcement. To help an assistive app determine the importance of the announcement, add the appropriate NSAccessibilityPriorityKey to the userInfo dictionary.

let NSAccessibilityApplicationActivatedNotification: String

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

let NSAccessibilityApplicationDeactivatedNotification: String

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

let NSAccessibilityApplicationHiddenNotification: String

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

let NSAccessibilityApplicationShownNotification: String

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

let NSAccessibilityCellRole: String

The cell role in a table or matrix.

let NSAccessibilityCloseButtonSubrole: String

A window’s close button subrole.

let NSAccessibilityContentListSubrole: String

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

let NSAccessibilityCreatedNotification: String

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

let NSAccessibilityDecrementArrowSubrole: String

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

let NSAccessibilityDecrementPageSubrole: String

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

let NSAccessibilityDefinitionListSubrole: String

A subrole for a content list in a webpage.

let NSAccessibilityDrawerCreatedNotification: String

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

let NSAccessibilityFocusedUIElementChangedNotification: String

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

let NSAccessibilityFocusedWindowChangedNotification: String

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

let NSAccessibilityFullScreenButtonSubrole: String

A window’s full-screen button subrole.

let NSAccessibilityGrowAreaRole: String

The grow (resize) area role in a window.

let NSAccessibilityHelpTagCreatedNotification: String

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

let NSAccessibilityIncrementArrowSubrole: String

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

let NSAccessibilityIncrementPageSubrole: String

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

let NSAccessibilityLayoutAreaRole: String

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

let NSAccessibilityLayoutChangedNotification: String

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

let NSAccessibilityLayoutItemRole: String

The role for an item in a layout area.

let NSAccessibilityListItemIndexTextAttribute: Stringlet NSAccessibilityListItemLevelTextAttribute: Stringlet NSAccessibilityListItemPrefixTextAttribute: String
let NSAccessibilityMainWindowChangedNotification: String

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

let NSAccessibilityMenuBarItemRole: String
let NSAccessibilityMinimizeButtonSubrole: String

A window’s minimize button subrole.

let NSAccessibilityMovedNotification: String

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

let NSAccessibilityPriorityKey: String

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.

let NSAccessibilityRadioGroupRole: String

The radio button group role.

let NSAccessibilityRequiredAttribute: String
let NSAccessibilityResizedNotification: String

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

let NSAccessibilityRowCollapsedNotification: String

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

let NSAccessibilityRowCountChangedNotification: String

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

let NSAccessibilityRowExpandedNotification: String

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

let NSAccessibilitySelectedCellsChangedNotification: String

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.

let NSAccessibilitySelectedChildrenChangedNotification: String

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.

let NSAccessibilitySelectedChildrenMovedNotification: String

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.

let NSAccessibilitySelectedColumnsChangedNotification: String

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.

let NSAccessibilitySelectedRowsChangedNotification: String

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.

let NSAccessibilitySelectedTextChangedNotification: String

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

let NSAccessibilitySharedFocusElementsAttribute: String
let NSAccessibilitySheetCreatedNotification: String

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

let NSAccessibilitySortButtonSubrole: String

A sort button subrole for a table or outline view.

let NSAccessibilitySplitterRole: String

The splitter bar role for a split view.

let NSAccessibilitySystemDialogSubrole: String

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

let NSAccessibilitySystemFloatingWindowSubrole: String

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

let NSAccessibilitySystemWideRole: String

The systemwide accessibility object role.

let NSAccessibilityTextAlignmentAttribute: String
let NSAccessibilityTitleChangedNotification: String

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

let NSAccessibilityToolbarButtonSubrole: String

A window’s toolbar button subrole.

let NSAccessibilityUIElementDestroyedNotification: String

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

let NSAccessibilityUIElementsKey: String

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.

let NSAccessibilityUnitsChangedNotification: String

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

let NSAccessibilityUnknownRole: String

An object whose role is unknown.

let NSAccessibilityValueChangedNotification: String

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

let NSAccessibilityWindowCreatedNotification: String

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

let NSAccessibilityWindowDeminiaturizedNotification: String

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.

let NSAccessibilityWindowMiniaturizedNotification: String

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

let NSAccessibilityWindowMovedNotification: String

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

let NSAccessibilityWindowResizedNotification: String

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

let NSAccessibilityZoomButtonSubrole: String

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.

let NSAlphaFirstBitmapFormat: NSBitmapFormat

A format where the alpha value comes first. (If this option is not specified, alpha values are the last component specified, as in CMYKA and RGBA.)

let NSAlphaNonpremultipliedBitmapFormat: NSBitmapFormat

A format where alpha values are not premultiplied. (If this option is not specified, alpha values are premultiplied.)

let NSAlphaShiftKeyMask: NSEventModifierFlags

Set if Caps Lock key is pressed.

Deprecated
let NSAlternateKeyMask: NSEventModifierFlags

Set if Option or Alternate key is pressed.

Deprecated
let NSAnimationProgressMark: Stringlet NSAnimationTriggerOrderIn: Stringlet NSAnimationTriggerOrderOut: String
var NSApp: NSApplication!

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

let NSAppKitVersionNumber: Double

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

var NSAppKitVersionNumber10_0: Int32

The AppKit framework included in OS X v10.0.

var NSAppKitVersionNumber10_1: Int32

The AppKit framework included in OS X v10.1.

var NSAppKitVersionNumber10_10: Int32var NSAppKitVersionNumber10_10_2: Int32var NSAppKitVersionNumber10_10_3: Int32var NSAppKitVersionNumber10_10_4: Int32var NSAppKitVersionNumber10_10_5: Int32var NSAppKitVersionNumber10_10_Max: Int32var NSAppKitVersionNumber10_11: Int32var NSAppKitVersionNumber10_11_1: Doublevar NSAppKitVersionNumber10_11_2: Doublevar NSAppKitVersionNumber10_11_3: Double
var NSAppKitVersionNumber10_2: Int32

The AppKit framework included in OS X v10.2.

var NSAppKitVersionNumber10_2_3: Double

The AppKit framework included in OS X v10.2.3.

var NSAppKitVersionNumber10_3: Int32

The AppKit framework included in OS X v10.3.

var NSAppKitVersionNumber10_3_2: Double

The AppKit framework included in OS X v10.3.2.

var NSAppKitVersionNumber10_3_3: Double

The AppKit framework included in OS X v10.3.3.

var NSAppKitVersionNumber10_3_5: Double

The AppKit framework included in OS X v10.3.5.

var NSAppKitVersionNumber10_3_7: Double

The AppKit framework included in OS X v10.3.7.

var NSAppKitVersionNumber10_3_9: Double

The AppKit framework included in OS X v10.3.9.

var NSAppKitVersionNumber10_4: Int32

The AppKit framework included in OS X v10.4.

var NSAppKitVersionNumber10_4_1: Double

The AppKit framework included in OS X v10.4.1.

var NSAppKitVersionNumber10_4_3: Double

The AppKit framework included in OS X v10.4.3.

var NSAppKitVersionNumber10_4_4: Double

The AppKit framework included in OS X v10.4.4.

var NSAppKitVersionNumber10_4_7: Double

The AppKit framework included in OS X v10.4.7.

var NSAppKitVersionNumber10_5: Int32

The AppKit framework included in OS X v10.5.

var NSAppKitVersionNumber10_5_2: Double

The AppKit framework included in OS X v10.5.2.

var NSAppKitVersionNumber10_5_3: Double

The AppKit framework included in OS X v10.5.3.

var NSAppKitVersionNumber10_6: Int32

The AppKit framework included in OS X v10.6.

var NSAppKitVersionNumber10_7: Int32

The AppKit framework included in OS X v10.7.

var NSAppKitVersionNumber10_7_2: Double

The AppKit framework included in OS X v10.7.2.

var NSAppKitVersionNumber10_7_3: Double

The AppKit framework included in OS X v10.7.3.

var NSAppKitVersionNumber10_7_4: Double

The AppKit framework included in OS X v10.7.4.

var NSAppKitVersionNumber10_8: Int32

The AppKit framework included in OS X v10.8.

var NSAppKitVersionNumber10_9: Int32
var NSAppKitVersionNumberWithColumnResizingBrowser: Double

The specific version of the AppKit framework that introduced support for resizing individual browser columns. Developers should not need to use this constant unless they are writing applications for macOS 10.3 and earlier.

var NSAppKitVersionNumberWithContinuousScrollingBrowser: Double

The specific version of the AppKit framework that introduced support the continuous scrolling in NSBrowser. Developers should not need to use this constant unless they are writing applications for macOS 10.3 and earlier.

var NSAppKitVersionNumberWithCursorSizeSupport: Double
var NSAppKitVersionNumberWithCustomSheetPosition: Double

The specific version of the AppKit framework that introduced custom sheet positioning. Developers should not need to use this constant unless they are writing applications for macOS 10.2 and earlier.

var NSAppKitVersionNumberWithDeferredWindowDisplaySupport: Double

The specific version of the AppKit framework that introduced support for deferred window display. Developers should not need to use this constant unless they are writing applications for OS X v10.5 and earlier.

var NSAppKitVersionNumberWithDirectionalTabs: Double

The specific version of the AppKit framework that introduced support for directional tab items.

var NSAppKitVersionNumberWithDockTilePlugInSupport: Double

The specific version of the AppKit framework that introduced support for dock tile plug-ins.. Developers should not need to use this constant unless they are writing applications for macOS 10.5 and earlier.

var NSAppKitVersionNumberWithPatternColorLeakFix: Doublelet NSAppearanceNameAqua: Stringlet NSAppearanceNameVibrantDark: Stringlet NSAppearanceNameVibrantLight: String
let NSApplicationActivatedEventType: NSEventSubtype

The application has been activated.

Deprecated
let NSApplicationDeactivatedEventType: NSEventSubtype

The application has been deactivated.

Deprecated
let NSApplicationLaunchIsDefaultLaunchKey: 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.

let NSApplicationLaunchUserNotificationKey: String

The following key is an NSUserNotification object that will be present in the userInfo dictionary of the NSApplicationDidFinishLaunching notification if your app was launched because a user activated a notification in the Notification Center.

let NSAttachmentAttributeName: String
let NSAuthorDocumentAttribute: String

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

let NSBMPFileType: NSBitmapImageFileType

Windows bitmap image (BMP) format

let NSBackgroundColorAttributeName: String
let NSBackgroundColorDocumentAttribute: String

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

let NSBackingPropertyOldColorSpaceKey: String

An NSColorSpace instance containing the old colorspace.

let NSBackingPropertyOldScaleFactorKey: String

An NSNumber containing the old scale factor.

let NSBaseURLDocumentOption: String

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

let NSBaselineOffsetAttributeName: String
let NSBorderlessWindowMask: NSWindowStyleMask

The window displays none of the usual peripheral elements. Useful only for display or caching purposes. A window that uses NSBorderlessWindowMask can’t become key or main, unless the value of canBecomeKey or canBecomeMain is true. Note that you can set a window’s or panel’s style mask to NSBorderlessWindowMask in Interface Builder by deselecting Title Bar in the Appearance section of the Attributes inspector.

Deprecated
let NSBottomMarginDocumentAttribute: String

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

let NSCMYKColorSpaceModel: NSColorSpaceModellet NSCMYKModeColorPanel: NSColorPanelMode
let NSCategoryDocumentAttribute: String

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

let NSCharacterEncodingDocumentAttribute: String

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.

let NSCharacterEncodingDocumentOption: String

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

let NSCharacterShapeAttributeName: String

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

Deprecated
let NSClosableWindowMask: NSWindowStyleMask

The window displays a close button.

Deprecated
let NSCocoaVersionDocumentAttribute: String

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.

let NSCollectionElementKindInterItemGapIndicator: String

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

let NSCollectionElementKindSectionFooter: String

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

let NSCollectionElementKindSectionHeader: String

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

let NSColorListModeColorPanel: NSColorPanelMode
let NSCommandKeyMask: NSEventModifierFlags

Set if Command key is pressed.

Deprecated
let NSCommentDocumentAttribute: String

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

let NSCompanyDocumentAttribute: String

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

let NSCompositeClear: NSCompositingOperation

Transparent. (R = 0)

Deprecated
let NSCompositeCopy: NSCompositingOperation

Source image. (R = S)

Deprecated
let NSCompositeDestinationAtop: NSCompositingOperation

Destination image wherever both images are opaque, source image wherever source image is opaque but destination image is transparent, and transparent elsewhere. (R = S*(1 - Da) + D*Sa)

Deprecated
let NSCompositeDestinationIn: NSCompositingOperation

Destination image wherever both images are opaque, and transparent elsewhere. (R = D*Sa)

Deprecated
let NSCompositeDestinationOut: NSCompositingOperation

Destination image wherever destination image is opaque but source image is transparent, and transparent elsewhere. (R = D*(1 - Sa))

Deprecated
let NSCompositeDestinationOver: NSCompositingOperation

Destination image wherever destination image is opaque, and source image elsewhere. (R = S*(1 - Da) + D)

Deprecated
let NSCompositePlusDarker: NSCompositingOperation

Sum of source and destination images, with color values approaching 0 as a limit. (R = MAX(0, (1 - D) + (1 - S)))

Deprecated
let NSCompositePlusLighter: NSCompositingOperation

Sum of source and destination images, with color values approaching 1 as a limit. (R = MIN(1, S + D))

Deprecated
let NSCompositeSourceAtop: NSCompositingOperation

Source image wherever both images are opaque, destination image wherever destination image is opaque but source image is transparent, and transparent elsewhere. (R = S*Da + D*(1 - Sa))

Deprecated
let NSCompositeSourceIn: NSCompositingOperation

Source image wherever both images are opaque, and transparent elsewhere. (R = S*Da)

Deprecated
let NSCompositeSourceOut: NSCompositingOperation

Source image wherever source image is opaque but destination image is transparent, and transparent elsewhere. (R = S*(1 - Da))

Deprecated
let NSCompositeSourceOver: NSCompositingOperation

Source image wherever source image is opaque, and destination image elsewhere. (R = S + D*(1 - Sa))

Deprecated
let NSCompositeXOR: NSCompositingOperation

Exclusive OR of source and destination images. (R = S*(1 - Da) + D*(1 - Sa))

Deprecated
let NSControlKeyMask: NSEventModifierFlags

Set if Control key is pressed.

Deprecated
let NSConvertedDocumentAttribute: String

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

let NSCopyrightDocumentAttribute: String

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

let NSCrayonModeColorPanel: NSColorPanelMode
let NSCreationTimeDocumentAttribute: String

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.

let NSCursorAttributeName: String

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

let NSCursorPointingDevice: NSPointingDeviceType

Represents a cursor (or puck-like) pointing device.

Deprecated
let NSCustomPaletteModeColorPanel: NSColorPanelModelet NSDefaultAttributesDocumentAttribute: String
let NSDefaultAttributesDocumentOption: String

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

let NSDefaultTabIntervalDocumentAttribute: String

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

let NSDefaultTokenStyle: NSTokenStyle
let NSDefinitionPresentationTypeDictionaryApplication: String

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

let NSDefinitionPresentationTypeKey: String

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

let NSDefinitionPresentationTypeOverlay: String

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

let NSDeviceBitsPerSample: String

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

let NSDeviceColorSpaceName: String

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

let NSDeviceIndependentModifierFlagsMask: NSEventModifierFlags

Used to retrieve only the device-independent modifier flags, allowing applications to mask off the device-dependent modifier flags, including event coalescing information.

Deprecated
let NSDeviceIsPrinter: String

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

let NSDeviceIsScreen: String

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

let NSDeviceNColorSpaceModel: NSColorSpaceModel
let NSDeviceResolution: String

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

let NSDeviceSize: String

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

let NSDocModalWindowMask: NSWindowStyleMask

The panel is created as a modal sheet.

Deprecated
let NSDocumentTypeDocumentAttribute: String
let NSDocumentTypeDocumentOption: String

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

let NSDragPboard: String

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

let NSDraggingImageComponentIconKey: String

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

let NSDraggingImageComponentLabelKey: String

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

let NSEditorDocumentAttribute: String

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

let NSEraserPointingDevice: NSPointingDeviceType

Represents the eraser end of a stylus-like pointing device.

Deprecated
var NSEventDurationForever: Double
let NSExcludedElementsDocumentAttribute: String

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

let NSExpansionAttributeName: String
let NSFileContentsPboardType: String

A representation of a file’s contents.

let NSFileTypeDocumentAttribute: String

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 NSDocumentTypeDocumentAttribute, but for writing the two are mutually exclusive.

let NSFileTypeDocumentOption: String

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

let NSFilenamesPboardType: String

An array of NSString objects designating one or more filenames.

let NSFindPanelCaseInsensitiveSearch: String

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

let NSFindPanelSearchOptionsPboardType: String

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

let NSFindPanelSubstringMatch: String

NSNumber object containing one of the values defined in NSFindPanelSubstringMatchType.

let NSFindPboard: String

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

let NSFloatingPointSamplesBitmapFormat: NSBitmapFormat

A format where samples are specified using floating-point numbers. (If this option is not specified, samples are integer values.)

let NSFontAttributeName: String
let NSFontCascadeListAttribute: String

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

let NSFontCharacterSetAttribute: String

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

let NSFontCollectionActionKey: String

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

let NSFontCollectionAllFonts: String

All fonts in the system.

let NSFontCollectionDisallowAutoActivationOption: String

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

let NSFontCollectionFavorites: String

Font collection of the user's preferred font descriptors.

let NSFontCollectionIncludeDisabledFontsOption: String

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.

let NSFontCollectionNameKey: String

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

let NSFontCollectionOldNameKey: String

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

let NSFontCollectionRecentlyUsed: String

Font collection automatically maintained by NSFontManager.

let NSFontCollectionRemoveDuplicatesOption: String

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.

let NSFontCollectionUser: String

Per-user unmodifiable collection.

let NSFontCollectionVisibilityKey: String

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

let NSFontCollectionWasHidden: String

The font collection was hidden.

let NSFontCollectionWasRenamed: String

The font collection was renamed.

let NSFontCollectionWasShown: String

The font collection was shown.

let NSFontFaceAttribute: String

An optional NSString object that specifies the font face.

let NSFontFamilyAttribute: String

An optional NSString object that specifies the font family.

let NSFontFeatureSelectorIdentifierKey: String

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.

let NSFontFeatureSettingsAttribute: String
let NSFontFeatureTypeIdentifierKey: String

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.

let NSFontFixedAdvanceAttribute: String

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

var NSFontIdentityMatrix: UnsafePointer<CGFloat>

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

let NSFontMatrixAttribute: String

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

let NSFontNameAttribute: String

An optional NSString object that specifies the font name.

let NSFontPboard: String

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

let NSFontPboardType: String

Font and character information.

let NSFontSizeAttribute: String

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

let NSFontSlantTrait: String

The relative slant angle value as an NSNumber object.

let NSFontSymbolicTrait: String

The symbolic traits value as an NSNumber object.

let NSFontTraitsAttribute: String

An NSDictionary instance instance fully describing font traits.

let NSFontVariationAttribute: String

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

let NSFontVariationAxisDefaultValueKey: String

The default axis value as an NSNumber object.

let NSFontVariationAxisIdentifierKey: String

The axis identifier value as an NSNumber object.

let NSFontVariationAxisMaximumValueKey: String

The maximum axis value as an NSNumber object.

let NSFontVariationAxisMinimumValueKey: String

The minimum axis value as an NSNumber object.

let NSFontVariationAxisNameKey: String

The localized variation axis name.

let NSFontVisibleNameAttribute: String

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

let NSFontWeightBlack: CGFloatlet NSFontWeightBold: CGFloatlet NSFontWeightHeavy: CGFloatlet NSFontWeightLight: CGFloatlet NSFontWeightMedium: CGFloatlet NSFontWeightRegular: CGFloatlet NSFontWeightSemibold: CGFloatlet NSFontWeightThin: CGFloat
let NSFontWeightTrait: String

The normalized weight value as an NSNumber object.

let NSFontWeightUltraLight: CGFloat
let NSFontWidthTrait: String

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

let NSForegroundColorAttributeName: String
let NSFullScreenModeAllScreens: String

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

let NSFullScreenModeApplicationPresentationOptions: String

Key whose corresponding value specifies the application presentation options.

let NSFullScreenModeSetting: String

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

let NSFullScreenModeWindowLevel: String

Key whose corresponding value specifies the screen mode window level.

let NSFullScreenWindowMask: NSWindowStyleMask

The window can appear full screen. A fullscreen window does not draw its title bar, and may have special handling for its toolbar. This mask is automatically toggled when toggleFullScreen(_:) is called.

Deprecated
let NSFullSizeContentViewWindowMask: NSWindowStyleMask

When set, the content view consumes the full size of the window; it can be combined with other window style masks, but is only respected for windows with a title bar. Using this mask opts in to layer backing. Use the contentLayoutRect or contentLayoutGuide to lay out views underneath the title bar-toolbar area.

Deprecated
let NSGIFFileType: NSBitmapImageFileType

Graphics Image Format (GIF), originally created by CompuServe for online downloads

let NSGeneralPboard: String

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

let NSGlyphInfoAttributeName: String

The name of an NSGlyphInfo object.

let NSGraphicsContextDestinationAttributeName: String

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

let NSGraphicsContextPDFFormat: String

Destination file format is PDF.

let NSGraphicsContextPSFormat: String

Destination file format is PostScript.

let NSGrayColorSpaceModel: NSColorSpaceModellet NSGrayModeColorPanel: NSColorPanelModelet NSGridViewSizeForContent: CGFloatlet NSHSBModeColorPanel: NSColorPanelMode
let NSHTMLPboardType: String

HTML (which an NSTextView object can read from, but not write to).

let NSHTMLTextDocumentType: String

Hypertext Markup Language (HTML) document.

let NSHUDWindowMask: NSWindowStyleMask

The panel is created as a transparent panel (sometimes called a “heads-up display”).

Deprecated
let NSHelpKeyMask: NSEventModifierFlags

Set if the Help key is pressed.

Deprecated
let NSHyphenationFactorDocumentAttribute: String

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

let NSImageColorSyncProfileData: String

Identifies an NSData object containing the ColorSync profile data.

let NSImageCompressionFactor: String

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

let NSImageCompressionMethod: String

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

let NSImageCurrentFrame: String

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

let NSImageCurrentFrameDuration: String

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

let NSImageDitherTransparency: String

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

let NSImageEXIFData: String

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

let NSImageFallbackBackgroundColor: String

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.

let NSImageFrameCount: String

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

let NSImageGamma: String

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

let NSImageHintCTM: String

Provides a context transform hint. The value for this key is an NSAffineTransform.

let NSImageHintInterpolation: String

Provides an interpolation hint. The value for this key is an NSNumber with an NSImageInterpolation value.

let NSImageHintUserInterfaceLayoutDirection: String
let NSImageInterlaced: String

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

let NSImageLoopCount: String

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

let NSImageNameActionTemplate: String

An action menu template image.

NSImageNameActionTemplate

let NSImageNameAddTemplate: String

An add item template image.

NSImageNameAddTemplate

let NSImageNameAdvanced: String

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

NSImageNameAdvanced

let NSImageNameBluetoothTemplate: String

A Bluetooth template image.

NSImageNameBluetoothTemplate

let NSImageNameBookmarksTemplate: String

Bookmarks image suitable for a template.

let NSImageNameColorPanel: String

A color panel toolbar icon.

NSImageNameColorPanel

let NSImageNameColumnViewTemplate: String

A column view mode template image.

NSImageNameColumnViewTemplate

let NSImageNameEnterFullScreenTemplate: String

An enter full-screen mode template image.

NSImageNameEnterFullScreenTemplate

let NSImageNameEveryone: String

Permissions for all users.

NSImageNameEveryone

let NSImageNameExitFullScreenTemplate: String

An exit full-screen mode template image.

NSImageNameExitFullScreenTemplate

let NSImageNameFlowViewTemplate: String

A cover flow view mode template image.

NSImageNameFlowViewTemplate

let NSImageNameFollowLinkFreestandingTemplate: String

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

NSImageNameFollowLinkFreestandingTemplate

let NSImageNameFontPanel: String

A font panel toolbar icon.

NSImageNameFontPanel

let NSImageNameGoBackTemplate: Stringlet NSImageNameGoForwardTemplate: String
let NSImageNameGoLeftTemplate: String

A “go back” template image.

NSImageNameGoLeftTemplate

let NSImageNameGoRightTemplate: String

A “go forward” template image.

NSImageNameGoRightTemplate

let NSImageNameHomeTemplate: String

Home image suitable for a template.

let NSImageNameIChatTheaterTemplate: String

An iChat Theater template image.

NSImageNameIChatTheaterTemplate

let NSImageNameIconViewTemplate: String

An icon view mode template image.

NSImageNameIconViewTemplate

let NSImageNameInfo: String

An information toolbar icon.

NSImageNameInfo

let NSImageNameInvalidDataFreestandingTemplate: String

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

let NSImageNameLeftFacingTriangleTemplate: String

A generic left-facing triangle template image.

NSImageNameLeftFacingTriangleTemplate

let NSImageNameListViewTemplate: String

A list view mode template image.

NSImageNameListViewTemplate

let NSImageNameLockLockedTemplate: String

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

NSImageNameLockLockedTemplate

let NSImageNameLockUnlockedTemplate: String

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

NSImageNameLockUnlockedTemplate

let NSImageNameMenuMixedStateTemplate: String

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

let NSImageNameMenuOnStateTemplate: String

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

let NSImageNameMobileMe: String

MobileMe logo. Note that this is preferred to using the NSImageNameDotMac image, although that image is not expected to be deprecated.

let NSImageNameMultipleDocuments: String

A drag image for multiple items.

NSImageNameMultipleDocuments

let NSImageNamePathTemplate: String

A path button template image.

NSImageNamePathTemplate

let NSImageNamePreferencesGeneral: String

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

NSImageNamePreferencesGeneral

let NSImageNameQuickLookTemplate: String

A Quick Look template image.

NSImageNameQuickLookTemplate

let NSImageNameRefreshFreestandingTemplate: String

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

NSImageNameRefreshFreestandingTemplate

let NSImageNameRefreshTemplate: String

A refresh template image.

NSImageNameRefreshTemplate

let NSImageNameRemoveTemplate: String

A remove item template image.

NSImageNameRemoveTemplate

let NSImageNameRevealFreestandingTemplate: String

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

NSImageNameRevealFreestandingTemplate

let NSImageNameRightFacingTriangleTemplate: String

A generic right-facing triangle template image.

NSImageNameRightFacingTriangleTemplate

let NSImageNameShareTemplate: String

A share view template image.

let NSImageNameSlideshowTemplate: String

A slideshow template image.

NSImageNameSlideshowTemplate

let NSImageNameSmartBadgeTemplate: String

A badge for a “smart” item.

NSImageNameSmartBadgeTemplate

let NSImageNameStatusAvailable: String

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

let NSImageNameStatusNone: String

Small clear indicator.

let NSImageNameStatusPartiallyAvailable: String

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

let NSImageNameStatusUnavailable: String

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

let NSImageNameStopProgressFreestandingTemplate: String

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

NSImageNameStopProgressFreestandingTemplate

let NSImageNameStopProgressTemplate: String

A stop progress button template image.

NSImageNameStopProgressTemplate

let NSImageNameTrashEmpty: String

An image of the empty trash can.

let NSImageNameTrashFull: String

An image of the full trash can.

let NSImageNameUser: String

Permissions for a single user.

NSImageNameUser

let NSImageNameUserAccounts: String

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

NSImageNameUserAccounts

let NSImageNameUserGroup: String

Permissions for a group of users.

NSImageNameUserGroup

let NSImageNameUserGuest: String

Permissions for guests.

let NSImageProgressive: String

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

let NSImageRGBColorTable: String

Identifies an NSData object containing the RGB color table.

let NSIndexedColorSpaceModel: NSColorSpaceModel

An indexed color space, which identifies specified discrete colors in a color list by index number. An indexed color value (a color specification in indexed color space) consists of an index value that refers to a color in a color list.

let NSInformationalAlertStyle: NSAlertStyle

An alert used to inform the user about a current or impending event.

Deprecated
let NSKernAttributeName: String
let NSKeywordsDocumentAttribute: String

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

let NSLABColorSpaceModel: NSColorSpaceModel
let NSLayoutPriorityDefaultHigh: NSLayoutPriority

Priority level with which a button resists compressing its content. Note that the level is higher than NSLayoutPriorityWindowSizeStayPut. This means dragging to resize a window will not make buttons clip, rather the window frame is constrained.

let NSLayoutPriorityDefaultLow: NSLayoutPriority

Priority level at which a button hugs its contents horizontally.

let NSLayoutPriorityDragThatCanResizeWindow: NSLayoutPriority

Appropriate priority level for a drag that may end up resizing the window. This drag does not need to explicitly resize the window. The user might be dragging around window contents, and it might be desirable for the window get bigger to accommodate those contents.

let NSLayoutPriorityDragThatCannotResizeWindow: NSLayoutPriority

Priority level at which a split view divider, say, is dragged. It won't resize the window.

let NSLayoutPriorityFittingSizeCompression: NSLayoutPriority

When you send a fittingSize message to a view, the smallest size that is large enough for the view's contents is computed. This is the priority level with which the view wants to be as small as possible in that computation. It's quite low. It is generally not appropriate to make a constraint at exactly this priority. You want to be higher or lower.

let NSLayoutPriorityRequired: NSLayoutPriority

A required constraint. Do not specify a layout constraint that exceeds this number.

let NSLayoutPriorityWindowSizeStayPut: NSLayoutPriority

Priority level for the window’s current size. It's generally not appropriate to make a constraint at exactly this priority. You want to be higher or lower. Constraints with higher priorities can adjust the window’s size. Constraints with lower priorities must be fulfilled using the current window size.

let NSLeftMarginDocumentAttribute: String

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

let NSLigatureAttributeName: Stringlet NSLinkAttributeName: String
let NSMacSimpleTextDocumentType: String

Macintosh SimpleText document.

let NSManagerDocumentAttribute: String

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

let NSMarkedClauseSegmentAttributeName: String
let NSMiniControlSize: NSControlSize

The control has a smaller size than NSSmallControlSize.

Deprecated
let NSMiniaturizableWindowMask: NSWindowStyleMask

The window displays a minimize button.

Deprecated
let NSModificationTimeDocumentAttribute: String

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

let NSMouseEventSubtype: NSEventSubtype

Indicates a purely mouse event.

Deprecated
let NSNoModeColorPanel: NSColorPanelMode

Indicates no color panel mode.

let NSNonactivatingPanelMask: NSWindowStyleMask

The panel can receive keyboard input without activating the owning app.

Deprecated
let NSNumericPadKeyMask: NSEventModifierFlags

Set if any key in the numeric keypad is pressed. The numeric keypad is generally on the right side of the keyboard. This is also set if any of the arrow keys are pressed (NSUpArrowFunctionKey, NSDownArrowFunctionKey, NSLeftArrowFunctionKey, and NSRightArrowFunctionKey).

Deprecated
var NSOPENGL_CURRENT_VERSION: Int32let NSObliquenessAttributeName: Stringlet NSOfficeOpenXMLTextDocumentType: Stringlet NSOpenDocumentTextDocumentType: String
let NSOpenGLCPCurrentRendererID: NSOpenGLContextParameter

The current renderer ID. You can get this setting.

let NSOpenGLCPGPUFragmentProcessing: NSOpenGLContextParameter

The CPU is currently processing fragments with the GPU. You can get this state.

let NSOpenGLCPGPUVertexProcessing: NSOpenGLContextParameter

The CPU is currently processing vertices with the GPU. You can get this state.

let NSOpenGLCPHasDrawable: NSOpenGLContextParameter

Returns a Boolean that indicates whether a drawable is attached to the context.

let NSOpenGLCPMPSwapsInFlight: NSOpenGLContextParameter

The number of frames that the multithreaded OpenGL engine can process before stalling. The default value is 1. New frames are queued when the application calls the flushBuffer() method. A larger number may improve overall performance, but adds latency between when a frame is rendered and when a frame is displayed. Interactive applications should leave this value at the default.

let NSOpenGLCPRasterizationEnable: NSOpenGLContextParameter

If disabled, all rasterization of 2D and 3D primitives is disabled.

let NSOpenGLCPReclaimResources: NSOpenGLContextParameter

Enable or disable reclaiming resources.

let NSOpenGLCPStateValidation: NSOpenGLContextParameter

If enabled, OpenGL inspects the context state each time the update() method is called to ensure that it is in an appropriate state for switching between renderers.

let NSOpenGLCPSurfaceBackingSize: NSOpenGLContextParameter

Set or get the height and width of the back buffer. You can use this to let the system scale an image automatically on swapping to a variable-size buffer. The back buffer size remains fixed at the size that you set up regardless of whether the image is resized to display larger onscreen.

let NSOpenGLCPSurfaceSurfaceVolatile: NSOpenGLContextParameter
let NSOpenGLCPSwapRectangleEnable: NSOpenGLContextParameter

Enables or disables the swap rectangle in the context’s drawable object.

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.

let NSOutlineViewDisclosureButtonKey: String

The normal triangle disclosure button.

let NSPNGFileType: NSBitmapImageFileType

Portable Network Graphics (PNG) format

let NSPaperSizeDocumentAttribute: String

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

let NSParagraphStyleAttributeName: String
let NSPasteboardTypeFindPanelSearchOptions: String

Type for the Find panel metadata property list.

let NSPasteboardTypeFont: String

Font and character information.

let NSPasteboardTypeRTF: String

Rich Text Format (RTF) data.

let NSPasteboardTypeRTFD: String

RTFD formatted file contents.

let NSPasteboardTypeRuler: String

Paragraph formatting information.

let NSPasteboardTypeString: String
let NSPasteboardTypeTIFF: String

Tag Image File Format (TIFF) data.

let NSPasteboardTypeTabularText: String

An NSString object containing tab-separated fields of text.

let NSPasteboardTypeTextFinderOptions: String

Type for the Find panel metadata property list..

let NSPasteboardURLReadingContentsConformToTypesKey: String

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

let NSPasteboardURLReadingFileURLsOnlyKey: String

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

let NSPatternColorSpaceModel: NSColorSpaceModel

Identifies a pattern color space, which is simply an image that is repeated over and over again in a tiled pattern.

let NSPenLowerSideMask: NSEventButtonMask

The button on the lower side of the device is activated.

Deprecated
let NSPenPointingDevice: NSPointingDeviceType

Represents the tip end of a stylus-like pointing device.

Deprecated
let NSPenUpperSideMask: NSEventButtonMask

The button on the upper side of the device is activated.

Deprecated
let NSPlainTextTokenStyle: NSTokenStyle
let NSPopoverCloseReasonDetachToWindow: String

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

let NSPopoverCloseReasonKey: String

The userInfo key containing the reason for the NSPopoverWillClose.

let NSPopoverCloseReasonStandard: String

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

let NSPostScriptPboardType: String

Encapsulated PostScript (EPS) code.

let NSPowerOffEventType: NSEventSubtype

Specifies that the user is turning off the computer.

Deprecated
let NSPrefixSpacesDocumentAttribute: String

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

let NSPrintAllPages: String

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

let NSPrintAllPresetsJobStyleHint: String

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

let NSPrintBottomMargin: String

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

let NSPrintCopies: String

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

let NSPrintDetailedErrorReporting: String

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

let NSPrintFaxNumber: String

An NSString object that specifies a fax number.

let NSPrintFirstPage: String

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

let NSPrintHeaderAndFooter: String

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

let NSPrintHorizontalPagination: String

NSNumber, containing a NSPrintingPaginationMode value.

let NSPrintHorizontallyCentered: String

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

let NSPrintJobDisposition: String

An NSString object that specifies the job disposition.

let NSPrintJobSavingFileNameExtensionHidden: String

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

let NSPrintJobSavingURL: String

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

let NSPrintLastPage: String

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

let NSPrintLeftMargin: String

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

let NSPrintMustCollate: String

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

let NSPrintNoPresetsJobStyleHint: String

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

let NSPrintOrientation: String

An NSNumber object containing an NSPrintingOrientation.

let NSPrintPagesAcross: String

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

let NSPrintPagesDown: String

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

let NSPrintPanelAccessorySummaryItemDescriptionKey: String

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

let NSPrintPanelAccessorySummaryItemNameKey: String

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

let NSPrintPaperName: String

An NSString object containing the paper name.

let NSPrintPaperSize: String

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

let NSPrintPhotoJobStyleHint: String

Output contains photographic data.

let NSPrintPreviewJob: String

Send to Preview application.

let NSPrintPrinter: String

An NSPrinter object—the printer to use.

let NSPrintPrinterName: String

An NSString object that specifies the name of a printer.

let NSPrintReversePageOrder: String

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

let NSPrintRightMargin: String

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

let NSPrintScalingFactor: String

Scale factor percentage before pagination.

let NSPrintSelectionOnly: String

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

let NSPrintTime: String

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

let NSPrintTopMargin: String

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

let NSPrintVerticalPagination: String

NSNumber, containing a NSPrintingPaginationMode value.

let NSPrintVerticallyCentered: String

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

let NSRGBColorSpaceModel: NSColorSpaceModellet NSRGBModeColorPanel: NSColorPanelMode
let NSRTFDPboardType: String

RTFD formatted file contents.

let NSRTFDTextDocumentType: String

Rich text format with attachments document.

let NSRTFPboardType: String

Rich Text Format (RTF) data.

let NSRTFTextDocumentType: String

Rich text format document.

let NSReadOnlyDocumentAttribute: String

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.

let NSRegularControlSize: NSControlSize

The control is sized as regular.

Deprecated
let NSResizableWindowMask: NSWindowStyleMask

The window displays a resize control.

Deprecated
let NSRightMarginDocumentAttribute: String

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

let NSRoundedTokenStyle: NSTokenStyle
let NSRuleEditorPredicateComparisonModifier: String

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

let NSRuleEditorPredicateCompoundType: String

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

let NSRuleEditorPredicateCustomSelector: String

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

let NSRuleEditorPredicateLeftExpression: String

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

let NSRuleEditorPredicateOperatorType: String

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

let NSRuleEditorPredicateOptions: String

The corresponding value is an NSNumber object representing a NSComparisonPredicate_Optionsbitfield.

let NSRuleEditorPredicateRightExpression: String

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

let NSRulerPboard: String

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.

let NSRulerPboardType: String

Paragraph formatting information.

let NSScreenChangedEventType: NSEventSubtype

An NSWindow has changed screens.

Deprecated
var NSSearchFieldClearRecentsMenuItemTag: Int32

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

var NSSearchFieldNoRecentsMenuItemTag: Int32

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

var NSSearchFieldRecentsMenuItemTag: Int32

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

var NSSearchFieldRecentsTitleMenuItemTag: Int32

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

let NSShadowAttributeName: String
let NSSharingServiceNameAddToSafariReadingList: String

Add the content to the Safari Reading List.

let NSSharingServiceNameCloudSharing: String
let NSSharingServiceNameComposeEmail: String

Creates an email messages with the content.

let NSSharingServiceNameComposeMessage: String

Creates a Messages methods with the content.

let NSSharingServiceNamePostOnSinaWeibo: String

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

let NSSharingServiceNamePostOnTencentWeibo: String

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

let NSSharingServiceNamePostVideoOnTudou: String

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

let NSSharingServiceNamePostVideoOnVimeo: String

Posts the video on the video sharing service Vimeo.

let NSSharingServiceNamePostVideoOnYouku: String

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

let NSSharingServiceNameUseAsDesktopPicture: String

Replaces the user’s desktop image with the content.

let NSSharingServiceNameUseAsFacebookProfileImage: String

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

let NSSharingServiceNameUseAsLinkedInProfileImage: String

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

let NSSharingServiceNameUseAsTwitterProfileImage: String

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

let NSSmallControlSize: NSControlSize

The control has a smaller size.

Deprecated
let NSSpeechCharacterModeProperty: String

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.

let NSSpeechCommandDelimiterProperty: String

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.

let NSSpeechCommandPrefix: String

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

let NSSpeechCommandSuffix: String

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

let NSSpeechCurrentVoiceProperty: String

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.

let NSSpeechDictionaryEntryPhonemes: String

The phonemic representation of an entry. An NSString.

let NSSpeechDictionaryEntrySpelling: String

The spelling of an entry. An NSString.

let NSSpeechDictionaryLocaleIdentifier: String

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

let NSSpeechDictionaryModificationDate: String

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.

let NSSpeechErrorCount: String

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

let NSSpeechErrorNewestCharacterOffset: String

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

let NSSpeechErrorNewestCode: String

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

let NSSpeechErrorOldestCharacterOffset: String

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

let NSSpeechErrorOldestCode: String

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

let NSSpeechErrorsProperty: String

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.

let NSSpeechInputModeProperty: String

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.

let NSSpeechModeLiteral: String

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").

let NSSpeechModeNormal: String

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

let NSSpeechModePhoneme: String

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.

let NSSpeechModeText: String

Indicates that the synthesizer is in text-processing mode.

let NSSpeechNumberModeProperty: String

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 NSSpeechModeNormal and NSSpeechModeLiteral are the possible values of this string.

let NSSpeechOutputToFileURLProperty: String

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.

let NSSpeechPhonemeInfoExample: String

An example word that illustrates the use of the phoneme.

let NSSpeechPhonemeInfoHiliteEnd: String

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

let NSSpeechPhonemeInfoHiliteStart: String

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

let NSSpeechPhonemeInfoSymbol: String

The symbol used to represent the phoneme.

let NSSpeechPhonemeSymbolsProperty: String

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

let NSSpeechPitchBaseProperty: String

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

let NSSpeechPitchModProperty: String

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

let NSSpeechRateProperty: String

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

let NSSpeechRecentSyncProperty: String

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

let NSSpeechResetProperty: String

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.

let NSSpeechStatusNumberOfCharactersLeft: String

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

let NSSpeechStatusOutputBusy: String

Indicates whether the synthesizer is currently producing speech.

let NSSpeechStatusOutputPaused: String

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

let NSSpeechStatusPhonemeCode: String

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.

let NSSpeechStatusProperty: String

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.

let NSSpeechSynthesizerInfoIdentifier: String

The identifier of the speech synthesizer.

let NSSpeechSynthesizerInfoProperty: String

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.

let NSSpeechSynthesizerInfoVersion: String

The version of the speech synthesizer.

let NSSpeechVolumeProperty: String

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

let NSSpellingStateAttributeName: String

The value of this attribute is an integer. Defaults to 0, indicating no grammar or spelling error.

let NSSplitViewControllerAutomaticDimension: CGFloatlet NSSplitViewItemUnspecifiedDimension: CGFloat
let NSSquareStatusItemLength: CGFloat

Sets the status item length to the status bar thickness.

let NSStackViewSpacingUseDefault: CGFloatlet NSStackViewVisibilityPriorityDetachOnlyIfNecessary: NSStackViewVisibilityPrioritylet NSStackViewVisibilityPriorityMustHold: NSStackViewVisibilityPrioritylet NSStackViewVisibilityPriorityNotVisible: NSStackViewVisibilityPrioritylet NSStrikethroughColorAttributeName: Stringlet NSStrikethroughStyleAttributeName: Stringlet NSStrokeColorAttributeName: Stringlet NSStrokeWidthAttributeName: String
let NSSubjectDocumentAttribute: String

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

let NSSuperscriptAttributeName: String

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

let NSTIFFFileType: NSBitmapImageFileType

Tagged Image File Format (TIFF)

let NSTIFFPboardType: String

Tag Image File Format (TIFF) data.

let NSTabColumnTerminatorsAttributeName: String

The value is an NSCharacterSet object.

let NSTableViewRowViewKey: String

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

let NSTabletPoint: NSEventType

An event representing the current state of a tablet pointing device, including its location, pressure, and tilt.

Deprecated
let NSTabletPointEventSubtype: NSEventSubtype

Indicates a tablet-pointer event; see description of NSTabletPoint.

Deprecated
let NSTabletPointMask: NSEventMask

Corresponds to NSTabletPoint.

Deprecated
let NSTabletProximity: NSEventType

An event representing the proximity of a pointing device to its tablet.

Deprecated
let NSTabletProximityEventSubtype: NSEventSubtype

Indicates a tablet-proximity event; see description of NSTabletProximity.

Deprecated
let NSTabletProximityMask: NSEventMask

Corresponds to NSTabletProximity.

Deprecated
let NSTabularTextPboardType: String

An NSString object containing tab-separated fields of text.

let NSTextAlternativesAttributeName: String
let NSTextCheckingDocumentAuthorKey: String

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

let NSTextCheckingDocumentTitleKey: String

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

let NSTextCheckingDocumentURLKey: String

An NSURL to be associated with the document.

let NSTextCheckingOrthographyKey: String

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.

let NSTextCheckingQuotesKey: String

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.

let NSTextCheckingReferenceDateKey: String

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

let NSTextCheckingReferenceTimeZoneKey: String

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.

let NSTextCheckingRegularExpressionsKey: String
let NSTextCheckingReplacementsKey: String

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

let NSTextCheckingSelectedRangeKey: Stringlet NSTextEffectAttributeName: String
let NSTextEffectLetterpressStyle: String

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

let NSTextEncodingNameDocumentAttribute: String

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

let NSTextEncodingNameDocumentOption: String

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

let NSTextFinderCaseInsensitiveKey: String

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

let NSTextFinderMatchingTypeKey: String

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

let NSTextLayoutSectionRange: String

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

let NSTextLayoutSectionsAttribute: String
let NSTextSizeMultiplierDocumentOption: String

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

let NSTexturedBackgroundWindowMask: NSWindowStyleMask

The window displays with a metal-textured background. Additionally, the window may be moved by clicking and dragging anywhere in the window background. A bordered window with this mask gets rounded bottom corners.

Deprecated
let NSTimeoutDocumentOption: String

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

let NSTitleDocumentAttribute: String

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

let NSTitledWindowMask: NSWindowStyleMask

The window displays a title bar.

Deprecated
let NSToolTipAttributeName: String

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

let NSToolbarCloudSharingItemIdentifier: String
let NSToolbarCustomizeToolbarItemIdentifier: String

The Customize item. Shows the customization palette.

let NSToolbarPrintItemIdentifier: String

The Print item. Sends printDocument: to firstResponder.

let NSToolbarShowColorsItemIdentifier: String

The Colors item. Shows the color panel.

let NSToolbarShowFontsItemIdentifier: String

The Fonts item. Shows the font panel.

let NSToolbarToggleSidebarItemIdentifier: String

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

let NSTopMarginDocumentAttribute: String

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

let NSTouchEventSubtype: NSEventSubtype

Indicates a touch event subtype.

Deprecated
let NSTypeIdentifierAddressText: Stringlet NSTypeIdentifierDateText: Stringlet NSTypeIdentifierPhoneNumberText: Stringlet NSTypeIdentifierTransitInformationText: String
let NSURLPboardType: String

NSURL data for one file or resource.

var NSUnderlineByWordMask: Int

Draw the underline only underneath words, not underneath whitespace.

Deprecated
let NSUnderlineColorAttributeName: Stringlet NSUnderlineStyleAttributeName: String
let NSUnifiedTitleAndToolbarWindowMask: NSWindowStyleMask

The window's title bar and toolbar have a unified look—that is, a continuous background. A horizontal separator line appears under the title bar and toolbar .

Deprecated
let NSUnknownColorSpaceModel: NSColorSpaceModel
let NSUnknownPointingDevice: NSPointingDeviceType

Represents an unknown type of pointing device.

Deprecated
let NSUserActivityDocumentURLKey: String

Key in the NSUserActivity object’s userInfo dictionary. Its value is the URL of the document associated with the user activity.

let NSUsesScreenFontsDocumentAttribute: String

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
let NSUtilityWindowMask: NSWindowStyleMask

The panel is created as a floating window.

Deprecated
let NSVariableStatusItemLength: CGFloat

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

let NSVerticalGlyphFormAttributeName: String
let NSViewAnimationEffectKey: String

An effect to apply to the animation.

let NSViewAnimationEndFrameKey: String

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

let NSViewAnimationFadeInEffect: String

Specifies a fade-in type of effect.

let NSViewAnimationFadeOutEffect: String

Specifies a fade-out type of effect.

let NSViewAnimationStartFrameKey: String

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

let NSViewAnimationTargetKey: String

The target of the animation.

let NSViewModeDocumentAttribute: String

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

let NSViewNoIntrinsicMetric: CGFloat
let NSViewSizeDocumentAttribute: String

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

let NSViewZoomDocumentAttribute: String

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

let NSVoiceAge: String

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

let NSVoiceDemoText: String

A demonstration string to speak. An NSString

let NSVoiceGender: String

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

let NSVoiceGenderNeuter: String

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

let NSVoiceIdentifier: String

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

let NSVoiceIndividuallySpokenCharacters: String

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.

let NSVoiceLocaleIdentifier: String

The language of the voice. An NSString

let NSVoiceName: String

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

let NSVoiceSupportedCharacters: String

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.

let NSWarningAlertStyle: NSAlertStyle

An alert used to warn the user about a current or impending event. The purpose is more than informational but not critical. This is the default alert style.

Deprecated
let NSWebArchiveTextDocumentType: String

Web Kit WebArchive document.

let NSWebPreferencesDocumentOption: String

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

let NSWebResourceLoadDelegateDocumentOption: String

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

let NSWheelModeColorPanel: NSColorPanelMode
let NSWindowExposedEventType: NSEventSubtype

A non-retained NSWindow has been exposed.

Deprecated
let NSWindowMovedEventType: NSEventSubtype

An NSWindow has moved.

Deprecated
let NSWordMLTextDocumentType: String

Microsoft Word XML (WordML schema) document.

let NSWorkspaceApplicationKey: String

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

let NSWorkspaceCompressOperation: String

Compress file. This operation always returns an error.

Deprecated
let NSWorkspaceCopyOperation: String

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

Deprecated
let NSWorkspaceDecompressOperation: String

Decompress file. This operation always returns an error.

Deprecated
let NSWorkspaceDecryptOperation: String

Decrypt file. This operation always returns an error.

Deprecated
let NSWorkspaceDesktopImageAllowClippingKey: String

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.

let NSWorkspaceDesktopImageFillColorKey: String

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 NSCalibratedRGBColorSpace are supported, and any alpha value is ignored.

let NSWorkspaceDesktopImageScalingKey: String

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.

let NSWorkspaceDestroyOperation: String

Destroy file. Behaves the same as removeFileAtPath:handler:.

Deprecated
let NSWorkspaceDuplicateOperation: String

Duplicate file in source directory.

Deprecated
let NSWorkspaceEncryptOperation: String

Encrypt file. This operation always returns an error.

Deprecated
let NSWorkspaceLaunchConfigurationAppleEvent: String

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.

let NSWorkspaceLaunchConfigurationArchitecture: String

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

let NSWorkspaceLaunchConfigurationArguments: String

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.

let NSWorkspaceLaunchConfigurationEnvironment: String

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.

let NSWorkspaceLinkOperation: String

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

Deprecated
let NSWorkspaceMoveOperation: String

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

Deprecated
let NSWorkspaceRecycleOperation: String

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
let NSWorkspaceVolumeLocalizedNameKey: String

NSString containing the user-visible name of the volume.

let NSWorkspaceVolumeOldLocalizedNameKey: String

NSString containing the old user-visible name of the volume

let NSWorkspaceVolumeOldURLKey: String

NSURL containing the old mount path of the volume

let NSWorkspaceVolumeURLKey: String

NSURL containing the mount path of the volume.

let NSWritingDirectionAttributeName: Stringvar NS_SHARING_SERVICE_DELEGATE_TRANSITION_IMAGE_FOR_SHARE_ITEM_DECLARES_NULLABILITY: Int32var NS_USER_ACTIVITY_SUPPORTED: Int32
let NSOnOffButton: NSButtonType

The first click highlights the button; a second click returns it to the normal (unhighlighted) state.

let NSPenTipMask: NSEventButtonMask

The pen tip is activated.

Deprecated
let NSPushOnPushOffButton: NSButtonType

When the button is clicked (on state), it appears illuminated. If the button has borders, it may also appear recessed. A second click returns it to its normal (off) state.

let NSRadioButton: NSButtonType

This style is similar to NSSwitchButton, but it is used to constrain a selection to a single element from several elements.

let NSRecessedBezelStyle: NSBezelStyle

A bezel style that matches the recessed buttons in Mail, Finder and Safari.

let NSRegularSquareBezelStyle: NSBezelStyle

A rectangular button with a two-point border, designed for icons.

let NSRoundRectBezelStyle: NSBezelStyle

A bezel style that matches the search buttons in Finder and Mail.

let NSRoundedBezelStyle: NSBezelStyle

A rounded rectangle button, designed for text.

let NSRoundedDisclosureBezelStyle: NSBezelStyle
let NSShadowlessSquareBezelStyle: NSBezelStyle

Similar to NSRegularSquareBezelStyle, but has no shadow, so you can abut the cells without overlapping shadows.

let NSShiftKeyMask: NSEventModifierFlags

Set if Shift key is pressed.

Deprecated
let NSSmallSquareBezelStyle: NSBezelStyle

A simple square bezel style. Buttons using this style can be scaled to any size.

let NSSwitchButton: NSButtonType

This style is a variant of NSToggleButton that has no border and is typically used to represent a checkbox.

let NSTexturedRoundedBezelStyle: NSBezelStyle

A textured (metal) bezel style similar in appearance to the Finder’s action (gear) button.

let NSTexturedSquareBezelStyle: NSBezelStyle

A bezel style appropriate for use with textured (metal) windows.

let NSThickSquareBezelStyle: NSBezelStyle

A rectangular button with a three-point border, designed for icons.

Deprecated
let NSThickerSquareBezelStyle: NSBezelStyle

A rectangular button with a four-point border, designed for icons.

Deprecated
let NSToggleButton: NSButtonType

After the first click, the button displays its alternate image or title (on state); a second click returns the button to its normal (off) state.