Framework | AppKit/AppKit.h |
Declared in | AMBundleAction.h AppKitErrors.h NSErrors.h NSGraphics.h NSNibDeclarations.h |
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 Application Kit Data Types Reference for descriptions of other constants defined in enumerations.
There are three types of constant in this document: global variables, errors, and exceptions.
Color-space names designate predefined color spaces.
NSString *NSCalibratedWhiteColorSpace; NSString *NSCalibratedBlackColorSpace; NSString *NSCalibratedRGBColorSpace; NSString *NSDeviceWhiteColorSpace; NSString *NSDeviceBlackColorSpace; NSString *NSDeviceRGBColorSpace; NSString *NSDeviceCMYKColorSpace; NSString *NSNamedColorSpace; NSString *NSPatternColorSpace; NSString *NSCustomColorSpace;
NSCalibratedWhiteColorSpace
Calibrated color space with white and alpha components (pure white is 1.0)
Available in Mac OS X v10.0 and later.
Declared in NSGraphics.h
.
NSCalibratedBlackColorSpace
Calibrated color space with black and alpha components (pure black is 1.0)
Available in Mac OS X v10.0 and later.
Declared in NSGraphics.h
.
NSCalibratedRGBColorSpace
Calibrated color space with red, green, blue, and alpha components.
You can also create a color with HSB (hue, saturation, brightness) and alpha components and can extract these components.
Available in Mac OS X v10.0 and later.
Declared in NSGraphics.h
.
NSDeviceWhiteColorSpace
Device-dependent color space with white and alpha components (pure white is 1.0)
Available in Mac OS X v10.0 and later.
Declared in NSGraphics.h
.
NSDeviceBlackColorSpace
Device-dependent color space with black and alpha components (pure black is 1.0)
Available in Mac OS X v10.0 and later.
Declared in NSGraphics.h
.
NSDeviceRGBColorSpace
Device-dependent color space with red, green, blue, and alpha components.
You can also create a color with HSB (hue, saturation, brightness) and alpha components and can extract these components.
Available in Mac OS X v10.0 and later.
Declared in NSGraphics.h
.
NSDeviceCMYKColorSpace
Device-dependent color space with cyan, magenta, yellow, black, and alpha components
Available in Mac OS X v10.0 and later.
Declared in NSGraphics.h
.
NSNamedColorSpace
Catalog name and color name components
The components of this color space are indexes into lists or catalogs of prepared colors. The catalogs of named colors come with lookup tables that are able to generate the correct color on a given device.
Available in Mac OS X v10.0 and later.
Declared in NSGraphics.h
.
NSPatternColorSpace
Pattern image (tiled)
Identifies a pattern color space, which is simply an image that is repeated over and over again in a tiled pattern.
Available in Mac OS X v10.0 and later.
Declared in NSGraphics.h
.
NSCustomColorSpace
Custom NSColorSpace
object and floating-point components describing a color in that space
A custom color-space object represents a color space that is not necessarily predefined by the Application Kit. See “Working With Color Spaces” for information on creating custom color-space objects.
Available in Mac OS X v10.0 and later.
Declared in NSGraphics.h
.
You can use a color-space name in certain methods of NSColor
that create or convert color objects. The name identifies the color space to be used for the operation.
NSGraphics.h
These constants are the standard gray values for the 2-bit deep grayscale color space.
const float NSWhite; const float NSLightGray; const float NSDarkGray; const float NSBlack;
NSWhite
A constant that specifies the white shade in the 2-bit deep grayscale color space.
Available in Mac OS X v10.0 and later.
Declared in NSGraphics.h
.
NSLightGray
A constant that specifies the light gray shade in the 2-bit deep grayscale color space.
Available in Mac OS X v10.0 and later.
Declared in NSGraphics.h
.
NSDarkGray
A constant that specifies the dark gray shade in the 2-bit deep grayscale color space.
Available in Mac OS X v10.0 and later.
Declared in NSGraphics.h
.
NSBlack
A constant that specifies the black shade in the 2-bit deep grayscale color space.
Available in Mac OS X v10.0 and later.
Declared in NSGraphics.h
.
NSGraphics.h
NSInterfaceStyleDefault
can be used to override the platform’s default interface style.
NSString *NSInterfaceStyleDefault;
For more information, see the function NSInterfaceStyleForKey
.
Type qualifiers used by Interface Builder to synchronize with Xcode. For more information, see Communicating With Objects in Cocoa Fundamentals Guide.
#define IBAction void #define IBOutlet
IBAction
Type qualifier used by Interface Builder to synchronize actions added programmatically with its internal list of action methods defined for a project.
Available in Mac OS X v10.0 and later.
Declared in NSNibDeclarations.h
.
IBOutlet
Identifier used to qualify an instance-variable declaration so that Interface Builder can synchronize the display and connection of outlets with Xcode.
Available in Mac OS X v10.0 and later.
Declared in AMBundleAction.h
.
NSNibDeclarations.h
Obsolete constant values. Do not use.
NSSize NSIconSize; NSSize NSTokenSize;
These constants represent errors generated by NSAttributedString
.
enum { NSTextReadInapplicableDocumentTypeError = 65806, NSTextWriteInapplicableDocumentTypeError = 66062, NSTextReadWriteErrorMinimum = 65792, NSTextReadWriteErrorMaximum = 66303 };
NSTextReadInapplicableDocumentTypeError
Indicates a problem reading data with the specified format.
Available in Mac OS X v10.4 and later.
Declared in AppKitErrors.h
.
NSTextWriteInapplicableDocumentTypeError
Indicates a problem writing data of the specified format.
Available in Mac OS X v10.4 and later.
Declared in AppKitErrors.h
.
NSTextReadWriteErrorMinimum
The beginning of a range of error codes reserved for future use.
Available in Mac OS X v10.4 and later.
Declared in AppKitErrors.h
.
NSTextReadWriteErrorMaximum
The end of a range of error codes reserved for future use.
Available in Mac OS X v10.4 and later.
Declared in AppKitErrors.h
.
These constants are returned in an NSError
object.
AppKitErrors.h
These constants name the exceptions that the Application Kit can raise.
NSString *NSTextLineTooLongException; NSString *NSTextNoSelectionException; NSString *NSWordTablesWriteException; NSString *NSWordTablesReadException; NSString *NSTextReadException; NSString *NSTextWriteException; NSString *NSPasteboardCommunicationException; NSString *NSPrintingCommunicationException; NSString *NSAbortModalException; NSString *NSAbortPrintingException; NSString *NSIllegalSelectorException; NSString *NSAppKitVirtualMemoryException; NSString *NSBadRTFDirectiveException; NSString *NSBadRTFFontTableException; NSString *NSBadRTFStyleSheetException; NSString *NSTypedStreamVersionException; NSString *NSTIFFException; NSString *NSPrintPackageException; NSString *NSBadRTFColorTableException; NSString *NSDraggingException; NSString *NSColorListIOException; NSString *NSColorListNotEditableException; NSString *NSBadBitmapParametersException; NSString *NSWindowServerCommunicationException; NSString *NSFontUnavailableException; NSString *NSPPDIncludeNotFoundException; NSString *NSPPDParseException; NSString *NSPPDIncludeStackOverflowException; NSString *NSPPDIncludeStackUnderflowException; NSString *NSRTFPropertyStackOverflowException; NSString *NSAppKitIgnoredException; NSString *NSBadComparisonException; NSString *NSImageCacheException; NSString *NSNibLoadingException; NSString *NSBrowserIllegalDelegateException; NSString *NSAccessibilityException;
NSTextLineTooLongException
Exception generated if a line is too long in a NSText
object.
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSTextNoSelectionException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSWordTablesWriteException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSWordTablesReadException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSTextReadException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSTextWriteException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSPasteboardCommunicationException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSPrintingCommunicationException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSAbortModalException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSAbortPrintingException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSIllegalSelectorException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSAppKitVirtualMemoryException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSBadRTFDirectiveException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSBadRTFFontTableException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSBadRTFStyleSheetException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSTypedStreamVersionException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSTIFFException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSPrintPackageException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSBadRTFColorTableException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSDraggingException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSColorListIOException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSColorListNotEditableException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSBadBitmapParametersException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSWindowServerCommunicationException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSFontUnavailableException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSPPDIncludeNotFoundException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSPPDParseException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSPPDIncludeStackOverflowException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSPPDIncludeStackUnderflowException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSRTFPropertyStackOverflowException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSAppKitIgnoredException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSBadComparisonException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSImageCacheException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSNibLoadingException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSBrowserIllegalDelegateException
Available in Mac OS X v10.0 and later.
Declared in NSErrors.h
.
NSAccessibilityException
Available in Mac OS X v10.2 and later.
Declared in NSErrors.h
.
NSErrors.h
© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-10-31)