| 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 |
This document describes the data types defined in the Application Kit framework and not described in a document for an individual class.
This type defines the standard system animation effects, which include both display and sound.
typedef enum _NSAnimationEffect { NSAnimationEffectDisappearingItemDefault = 0, NSAnimationEffectPoof = 10 } NSAnimationEffect;
NSAnimationEffectDisappearingItemDefaultThe default effect.
Available in Mac OS X v10.3 and later.
Declared in NSGraphics.h.
NSAnimationEffectPoofAn effect showing a puff of smoke.
Available in Mac OS X v10.3 and later.
Declared in NSGraphics.h.
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.
NSGraphics.h
A private data structure used internally by NSBrowser.
typedef struct NSBrowserAuxiliary NSBrowserAuxiliaryOpaque;
NSBrowser.h
A private data structure used internally by NSColorList.
typedef struct NSColorListAuxiliary NSColorListAuxiliaryOpaque;
NSColorList.h
The focus ring style indicates how the focus ring will be drawn.
typedef enum {
NSFocusRingOnly = 0,
NSFocusRingBelow = 1,
NSFocusRingAbove = 2
} NSFocusRingPlacement;
NSFocusRingAboveUse NSFocusRingAbove to draw over an image.
Fill a shape to add the focus ring around the shape.
Available in Mac OS X v10.1 and later.
Declared in NSGraphics.h.
NSFocusRingBelowUse NSFocusRingBelow to draw the focus ring under text.
Available in Mac OS X v10.1 and later.
Declared in NSGraphics.h.
NSFocusRingOnlyUse NSFocusRingOnly if you don’t have an image or text.
Available in Mac OS X v10.1 and later.
Declared in NSGraphics.h.
NSGraphics.h
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;
NSFocusRingTypeDefaultThe default focus ring type for NSView or NSCell.
Available in Mac OS X v10.3 and later.
Declared in NSGraphics.h.
NSFocusRingTypeNoneNo focus ring. If you set the focus ring type to this value, NSView and NSCell will not draw any focus ring.
Available in Mac OS X v10.3 and later.
Declared in NSGraphics.h.
NSFocusRingTypeExteriorThe standard Aqua focus ring.
Available in Mac OS X v10.3 and later.
Declared in NSGraphics.h.
NSGraphics.h
These constants are used in NSResponder’s interfaceStyle method.
typedef enum {
NSNoInterfaceStyle = 0,
NSNextStepInterfaceStyle = 1,
NSWindows95InterfaceStyle = 2,
NSMacintoshInterfaceStyle = 3
} NSInterfaceStyle;
NSNoInterfaceStyleThe default interface style.
Available in Mac OS X v10.0 and later.
Declared in NSInterfaceStyle.h.
NSNextStepInterfaceStyleThe NextStep interface style.
Available in Mac OS X v10.0 and later.
Declared in NSInterfaceStyle.h.
NSWindows95InterfaceStyleThe Windows 95 interface style.
Available in Mac OS X v10.0 and later.
Declared in NSInterfaceStyle.h.
NSMacintoshInterfaceStyleThe Macintosh interface style.
Available in Mac OS X v10.0 and later.
Declared in NSInterfaceStyle.h.
NSInterfaceStyle.h
Variables of type NSModalSession point to information used by the system between NSApplication’s beginModalSessionForWindow: and endModalSession: messages.
typedef struct _NSModalSession *NSModalSession;
NSApplication.hA private data structure used by NSOpenGLContext.
typedef struct _CGLContextObject NSOpenGLContextAuxiliary;
NSOpenGL.h
These constants are option names for NSOpenGLSetOption and NSOpenGLGetOption.
typedef enum {
NSOpenGLGOFormatCacheSize = 501,
NSOpenGLGOClearFormatCache = 502,
NSOpenGLGORetainRenderers = 503,
NSOpenGLGOResetLibrary = 504
} NSOpenGLGlobalOption;
NSOpenGLGOFormatCacheSizeSets the size of the pixel format cache.
Available in Mac OS X v10.0 and later.
Declared in NSOpenGL.h.
NSOpenGLGOClearFormatCacheResets the pixel format cache if true.
Available in Mac OS X v10.0 and later.
Declared in NSOpenGL.h.
NSOpenGLGORetainRenderersWhether to retain loaded renderers in memory.
Available in Mac OS X v10.0 and later.
Declared in NSOpenGL.h.
NSOpenGLGOResetLibraryDoes a soft reset of the CGL library if true.
Available in Mac OS X v10.0 and later.
Declared in NSOpenGL.h.
NSOpenGL.h
A private data structure used by NSOpenGLPixelFormat.
typedef struct _CGLPixelFormatObject NSOpenGLPixelFormatAuxiliary;
NSOpenGL.h
A private data structure used internally by NSSavePanel.
typedef struct NSSavePanelAuxiliary NSSavePanelAuxiliaryOpaque;
NSSavePanel.h
A private data structure used internally by NSScreen.
typedef struct NSScreenAuxiliary NSScreenAuxiliaryOpaque;
NSScreen.h
A private data structure used by NSTabViewItem.
typedef struct NSTabViewItemAuxiliary NSTabViewItemAuxiliaryOpaque;
NSTabViewItem.h
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;
curLocationLocation (relative to the baseline) for laying this glyph out.
extentRequired space from curLocation to 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.
NSSimpleHorizontalTypesetter.h
© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-05-23)