Application Kit Data Types Reference
| Framework | AppKit/AppKit.h |
| Declared in | NSApplication.h NSBrowser.h NSColorList.h NSGraphics.h NSInterfaceStyle.h NSOpenGL.h NSSavePanel.h NSScreen.h NSSimpleHorizontalTypesetter.h NSTabViewItem.h |
Overview
This document describes the data types defined in the Application Kit framework and not described in a document for an individual class.
Data Types
NSAnimationEffect
This type defines the standard system animation effects, which include both display and sound.
typedef enum _NSAnimationEffect {
NSAnimationEffectDisappearingItemDefault = 0,
NSAnimationEffectPoof = 10
} NSAnimationEffect;
Constants
NSAnimationEffectDisappearingItemDefaultThe default effect.
Available in OS X v10.3 and later.
Declared in
NSGraphics.h.NSAnimationEffectPoofAn effect showing a puff of smoke.
Available in OS X v10.3 and later.
Declared in
NSGraphics.h.
Discussion
These effects are used to indicate that an item was removed from a collection, such as a toolbar, without deleting the underlying data. See NSShowAnimationEffect.
Availability
- Available in OS X v10.3 and later.
Declared In
NSGraphics.hNSBrowserAuxiliaryOpaque
A private data structure used internally by NSBrowser.
typedef struct NSBrowserAuxiliary NSBrowserAuxiliaryOpaque;
Availability
- Available in OS X v10.3 and later.
Declared In
NSBrowser.hNSColorListAuxiliaryOpaque
A private data structure used internally by NSColorList.
typedef struct NSColorListAuxiliary NSColorListAuxiliaryOpaque;
Availability
- Available in OS X v10.3 and later.
Declared In
NSColorList.hNSFocusRingPlacement
The focus ring style indicates how the focus ring will be drawn.
typedef enum {
NSFocusRingOnly = 0,
NSFocusRingBelow = 1,
NSFocusRingAbove = 2
} NSFocusRingPlacement;
Constants
NSFocusRingAboveUse
NSFocusRingAboveto draw over an image.Fill a shape to add the focus ring around the shape.
Available in OS X v10.1 and later.
Declared in
NSGraphics.h.NSFocusRingBelowUse
NSFocusRingBelowto draw the focus ring under text.Available in OS X v10.1 and later.
Declared in
NSGraphics.h.NSFocusRingOnlyUse
NSFocusRingOnlyif you don’t have an image or text.Available in OS X v10.1 and later.
Declared in
NSGraphics.h.
Availability
- Available in OS X v10.1 and later.
Declared In
NSGraphics.hNSFocusRingType
The focus ring type is used by NSView and NSCell to configure if and how a control should draw its focus ring.
typedef enum _NSFocusRingType {
NSFocusRingTypeDefault = 0,
NSFocusRingTypeNone = 1,
NSFocusRingTypeExterior = 2
} NSFocusRingType;
Constants
NSFocusRingTypeDefaultThe default focus ring type for
NSVieworNSCell.Available in OS X v10.3 and later.
Declared in
NSGraphics.h.NSFocusRingTypeNoneNo focus ring. If you set the focus ring type to this value,
NSViewandNSCellwill not draw any focus ring.Available in OS X v10.3 and later.
Declared in
NSGraphics.h.NSFocusRingTypeExteriorThe standard Aqua focus ring.
Available in OS X v10.3 and later.
Declared in
NSGraphics.h.
Availability
- Available in OS X v10.3 and later.
Declared In
NSGraphics.hNSInterfaceStyle
These constants are used in NSResponder’s interfaceStyle method.
typedef enum {
NSNoInterfaceStyle = 0,
NSNextStepInterfaceStyle = 1,
NSWindows95InterfaceStyle = 2,
NSMacintoshInterfaceStyle = 3
} NSInterfaceStyle;
Constants
NSNoInterfaceStyleThe default interface style.
Available in OS X v10.0 and later.
Declared in
NSInterfaceStyle.h.NSNextStepInterfaceStyleThe NextStep interface style.
Available in OS X v10.0 and later.
Declared in
NSInterfaceStyle.h.NSWindows95InterfaceStyleThe Windows 95 interface style.
Available in OS X v10.0 and later.
Declared in
NSInterfaceStyle.h.NSMacintoshInterfaceStyleThe Macintosh interface style.
Available in OS X v10.0 and later.
Declared in
NSInterfaceStyle.h.
Availability
- Available in OS X v10.0 and later.
Declared In
NSInterfaceStyle.hNSModalSession
Variables of type NSModalSession point to information used by the system between NSApplication’s beginModalSessionForWindow: and endModalSession: messages.
typedef struct _NSModalSession *NSModalSession;
Availability
- Available in OS X v10.0 and later.
Declared In
NSApplication.hNSOpenGLContextAuxiliary
A private data structure used by NSOpenGLContext.
typedef struct _CGLContextObject NSOpenGLContextAuxiliary;
Availability
- Available in OS X v10.0 and later.
Declared In
NSOpenGL.hNSOpenGLGlobalOption
These constants are option names for NSOpenGLSetOption and NSOpenGLGetOption.
typedef enum {
NSOpenGLGOFormatCacheSize = 501,
NSOpenGLGOClearFormatCache = 502,
NSOpenGLGORetainRenderers = 503,
NSOpenGLGOResetLibrary = 504
} NSOpenGLGlobalOption;
Constants
NSOpenGLGOFormatCacheSizeSets the size of the pixel format cache.
Available in OS X v10.0 and later.
Declared in
NSOpenGL.h.NSOpenGLGOClearFormatCacheResets the pixel format cache if true.
Available in OS X v10.0 and later.
Declared in
NSOpenGL.h.NSOpenGLGORetainRenderersWhether to retain loaded renderers in memory.
Available in OS X v10.0 and later.
Declared in
NSOpenGL.h.NSOpenGLGOResetLibraryDoes a soft reset of the CGL library if true.
Available in OS X v10.0 and later.
Declared in
NSOpenGL.h.
Availability
- Available in OS X v10.0 and later.
Declared In
NSOpenGL.hNSOpenGLPixelFormatAuxiliary
A private data structure used by NSOpenGLPixelFormat.
typedef struct _CGLPixelFormatObject NSOpenGLPixelFormatAuxiliary;
Availability
- Available in OS X v10.0 and later.
Declared In
NSOpenGL.hNSSavePanelAuxiliaryOpaque
A private data structure used internally by NSSavePanel.
typedef struct NSSavePanelAuxiliary NSSavePanelAuxiliaryOpaque;
Availability
- Available in OS X v10.3 and later.
Declared In
NSSavePanel.hNSScreenAuxiliaryOpaque
A private data structure used internally by NSScreen.
typedef struct NSScreenAuxiliary NSScreenAuxiliaryOpaque;
Availability
- Available in OS X v10.0 and later.
Declared In
NSScreen.hNSTabViewItemAuxiliaryOpaque
A private data structure used by NSTabViewItem.
typedef struct NSTabViewItemAuxiliary NSTabViewItemAuxiliaryOpaque;
Availability
- Available in OS X v10.2 and later.
Declared In
NSTabViewItem.hNSTypesetterGlyphInfo
This type is a caching structure used by NSSimpleHorizontalTypesetter.
typedef struct _NSTypesetterGlyphInfo {
NSPoint curLocation;
float extent;
float belowBaseline;
float aboveBaseline;
unsigned glyphCharacterIndex;
NSFont *font;
NSSize attachmentSize;
struct {
BOOL defaultPositioning:1;
BOOL dontShow:1;
BOOL isAttachment:1;
} _giflags;
} NSTypesetterGlyphInfo;
Fields
curLocationLocation (relative to the baseline) for laying this glyph out.
extentRequired space from
curLocationto lay this glyph out; –1.0 if not set.belowBaselineDistance from baseline to bottom of the line fragment required for all the glyphs so far, including this one (positive if baseline is above the bottom of the line fragment).
aboveBaselineDistance from baseline to top of the line fragment required for all the glyphs so far, including this one (positive if baseline is below the top of the line fragment).
glyphCharacterIndexCharacter index.
fontFont.
attachmentSizeSize of the character if it’s an attachment; otherwise meaningless.
defaultPositioningThis block needs to be “show”ed.
dontShowDon’t show this glyph.
isAttachmentWhether the glyph is an attachment.
Availability
- Available in OS X v10.0 through OS X v10.4.
Declared In
NSSimpleHorizontalTypesetter.h© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-05-23)