NSWindow Class Reference
PDF
Overview
Tasks
Creating Windows
Configuring Windows
Accessing Window Information
Getting Layout Information
Managing Windows
Managing Sheets
Sizing
Sizing Content
Managing Window Layers
Managing Window Frames in User Defaults
Managing Key Status
Managing Main Status
Managing Toolbars
Managing Attached Windows
Managing Window Buffers
Managing Default Buttons
Managing Field Editors
Managing the Window Menu
Managing Cursor Rectangles
Managing Title Bars
Managing Tooltips
Handling Events
Managing Responders
Managing the Key View Loop
Handling Keyboard Events
Handling Mouse Events
Bracketing Drawing Operations
Drawing Windows
Updating Windows
Exposing Windows
Dragging
Converting Coordinates
Getting the Undo Manager
Accessing Edited Status
Managing Titles
Accessing Screen Information
Moving
Closing Windows
Minimizing Windows
Getting the Dock Tile
Printing
Providing Services
Working with Carbon
Class Methods
contentRectForFrameRect:styleMask:
defaultDepthLimit
frameRectForContentRect:styleMask:
menuChanged:
minFrameWidthWithTitle:styleMask:
removeFrameUsingName:
standardWindowButton:forStyleMask:
Instance Methods
acceptsMouseMovedEvents
addChildWindow:ordered:
allowsToolTipsWhenApplicationIsInactive
alphaValue
animationResizeTime:
areCursorRectsEnabled
aspectRatio
attachedSheet
autorecalculatesContentBorderThicknessForEdge:
autorecalculatesKeyViewLoop
backgroundColor
backingLocation
backingType
becomeKeyWindow
becomeMainWindow
cacheImageInRect:
canBecomeKeyWindow
canBecomeMainWindow
canBecomeVisibleWithoutLogin
canHide
canStoreColor
cascadeTopLeftFromPoint:
center
childWindows
close
collectionBehavior
constrainFrameRect:toScreen:
contentAspectRatio
contentBorderThicknessForEdge:
contentMaxSize
contentMinSize
contentRectForFrameRect:
contentResizeIncrements
contentView
convertBaseToScreen:
convertScreenToBase:
currentEvent
dataWithEPSInsideRect:
dataWithPDFInsideRect:
deepestScreen
defaultButtonCell
delegate
deminiaturize:
depthLimit
deviceDescription
disableCursorRects
disableFlushWindow
disableKeyEquivalentForDefaultButtonCell
disableScreenUpdatesUntilFlush
discardCachedImage
discardCursorRects
discardEventsMatchingMask:beforeEvent:
display
displayIfNeeded
displaysWhenScreenProfileChanges
dockTile
dragImage:at:offset:event:pasteboard:source:slideBack:
drawers
enableCursorRects
enableFlushWindow
enableKeyEquivalentForDefaultButtonCell
endEditingFor:
fieldEditor:forObject:
firstResponder
flushWindow
flushWindowIfNeeded
frame
frameAutosaveName
frameRectForContentRect:
graphicsContext
gState
hasDynamicDepthLimit
hasShadow
hidesOnDeactivate
ignoresMouseEvents
initialFirstResponder
initWithContentRect:styleMask:backing:defer:
initWithContentRect:styleMask:backing:defer:screen:
initWithWindowRef:
invalidateCursorRectsForView:
invalidateShadow
isAutodisplay
isDocumentEdited
isExcludedFromWindowsMenu
isFlushWindowDisabled
isKeyWindow
isMainWindow
isMiniaturized
isMovableByWindowBackground
isOneShot
isOpaque
isReleasedWhenClosed
isSheet
isVisible
isZoomed
keyDown:
keyViewSelectionDirection
level
makeFirstResponder:
makeKeyAndOrderFront:
makeKeyWindow
makeMainWindow
maxSize
miniaturize:
miniwindowImage
miniwindowTitle
minSize
mouseLocationOutsideOfEventStream
nextEventMatchingMask:
nextEventMatchingMask:untilDate:inMode:dequeue:
orderBack:
orderFront:
orderFrontRegardless
orderOut:
orderWindow:relativeTo:
parentWindow
performClose:
performMiniaturize:
performZoom:
postEvent:atStart:
preferredBackingLocation
preservesContentDuringLiveResize
print:
recalculateKeyViewLoop
registerForDraggedTypes:
removeChildWindow:
representedFilename
representedURL
resetCursorRects
resignKeyWindow
resignMainWindow
resizeFlags
resizeIncrements
restoreCachedImage
runToolbarCustomizationPalette:
saveFrameUsingName:
screen
selectKeyViewFollowingView:
selectKeyViewPrecedingView:
selectNextKeyView:
selectPreviousKeyView:
sendEvent:
setAcceptsMouseMovedEvents:
setAllowsToolTipsWhenApplicationIsInactive:
setAlphaValue:
setAspectRatio:
setAutodisplay:
setAutorecalculatesContentBorderThickness:forEdge:
setAutorecalculatesKeyViewLoop:
setBackgroundColor:
setBackingType:
setCanBecomeVisibleWithoutLogin:
setCanHide:
setCollectionBehavior:
setContentAspectRatio:
setContentBorderThickness:forEdge:
setContentMaxSize:
setContentMinSize:
setContentResizeIncrements:
setContentSize:
setContentView:
setDefaultButtonCell:
setDelegate:
setDepthLimit:
setDisplaysWhenScreenProfileChanges:
setDocumentEdited:
setDynamicDepthLimit:
setExcludedFromWindowsMenu:
setFrame:display:
setFrame:display:animate:
setFrameAutosaveName:
setFrameFromString:
setFrameOrigin:
setFrameTopLeftPoint:
setFrameUsingName:
setFrameUsingName:force:
setHasShadow:
setHidesOnDeactivate:
setIgnoresMouseEvents:
setInitialFirstResponder:
setLevel:
setMaxSize:
setMiniwindowImage:
setMiniwindowTitle:
setMinSize:
setMovableByWindowBackground:
setOneShot:
setOpaque:
setParentWindow:
setPreferredBackingLocation:
setPreservesContentDuringLiveResize:
setReleasedWhenClosed:
setRepresentedFilename:
setRepresentedURL:
setResizeIncrements:
setSharingType:
setShowsResizeIndicator:
setShowsToolbarButton:
setTitle:
setTitleWithRepresentedFilename:
setToolbar:
setViewsNeedDisplay:
setWindowController:
sharingType
showsResizeIndicator
showsToolbarButton
standardWindowButton:
stringWithSavedFrame
styleMask
title
toggleToolbarShown:
toolbar
tryToPerform:with:
unregisterDraggedTypes
update
useOptimizedDrawing:
userSpaceScaleFactor
validRequestorForSendType:returnType:
viewsNeedDisplay
windowController
windowNumber
windowRef
worksWhenModal
zoom:
Delegate Methods
window:shouldDragDocumentWithEvent:from:withPasteboard:
window:shouldPopUpDocumentPathMenu:
window:willPositionSheet:usingRect:
windowDidBecomeKey:
windowDidBecomeMain:
windowDidChangeScreen:
windowDidChangeScreenProfile:
windowDidDeminiaturize:
windowDidEndSheet:
windowDidExpose:
windowDidMiniaturize:
windowDidMove:
windowDidResignKey:
windowDidResignMain:
windowDidResize:
windowDidUpdate:
windowShouldClose:
windowShouldZoom:toFrame:
windowWillBeginSheet:
windowWillClose:
windowWillMiniaturize:
windowWillMove:
windowWillResize:toSize:
windowWillReturnFieldEditor:toObject:
windowWillReturnUndoManager:
windowWillUseStandardFrame:defaultFrame:
Constants
Window Style Masks
Window Levels
Display Device—Descriptions
Managing Scaling Factors
Controlling the Look of a Window and Its Toolbar
NSSelectionDirection—Direction of Key View Change
NSWindowButton—Accessing Standard Title Bar Buttons
NSRunLoop—Ordering Modes for NSWindow
NSWindowDepth—Window Depth
NSBackingStoreType—Buffered Window Drawing
NSWindowOrderingMode
NSWindowAuxiliaryOpaque
NSWindowSharingType
NSWindowBackingLocation
Managing Window Collections
Notifications
NSWindowDidBecomeKeyNotification
NSWindowDidBecomeMainNotification
NSWindowDidChangeScreenNotification
NSWindowDidChangeScreenProfileNotification
NSWindowDidDeminiaturizeNotification
NSWindowDidEndSheetNotification
NSWindowDidExposeNotification
NSWindowDidMiniaturizeNotification
NSWindowDidMoveNotification
NSWindowDidResignKeyNotification
NSWindowDidResignMainNotification
NSWindowDidResizeNotification
NSWindowDidUpdateNotification
NSWindowWillBeginSheetNotification
NSWindowWillCloseNotification
NSWindowWillMiniaturizeNotification
NSWindowWillMoveNotification
Appendix A: Deprecated NSWindow Methods
Deprecated in Mac OS X v10.5
canBeVisibleOnAllSpaces
setCanBeVisibleOnAllSpaces:
Revision History
Index
Companion Guide
Window Programming Guide for Cocoa