NSView Class Reference
PDF
Class at a Glance
Overview
Subclassing Notes
Tasks
Creating Instances
Managing the View Hierarchy
Searching by Tag
Modifying the Frame Rectangle
Modifying the Bounds Rectangle
Modifying the Coordinate System
Examining Coordinate System Modifications
Base Coordinate Conversion
Converting Coordinates
Controlling Notifications
Resizing Subviews
Focusing
Displaying
Focus Ring Drawing
Fullscreen Mode
Hiding Views
Drawing
Managing Live Resize
Managing the Graphics State
Event Handling
Dragging Operations
Tool Tips
Managing Tracking Rectangles
Managing Tracking Areas
Managing Cursor Tracking
Scrolling
Contextual Menus
Key-view Loop Management
Printing
Pagination
Writing Conforming Rendering Instructions
Core Animation Layer-Backing
Core Animation Layer Properties
Class Methods
defaultFocusRingType
defaultMenu
focusView
Instance Methods
acceptsFirstMouse:
addCursorRect:cursor:
addSubview:
addSubview:positioned:relativeTo:
addToolTipRect:owner:userData:
addTrackingArea:
addTrackingRect:owner:userData:assumeInside:
adjustPageHeightNew:top:bottom:limit:
adjustPageWidthNew:left:right:limit:
adjustScroll:
allocateGState
alphaValue
ancestorSharedWithView:
autoresizesSubviews
autoresizingMask
autoscroll:
backgroundFilters
beginDocument
beginPageInRect:atPlacement:
bitmapImageRepForCachingDisplayInRect:
bounds
boundsRotation
cacheDisplayInRect:toBitmapImageRep:
canBecomeKeyView
canDraw
centerScanRect:
compositingFilter
contentFilters
convertPoint:fromView:
convertPoint:toView:
convertPointFromBase:
convertPointToBase:
convertRect:fromView:
convertRect:toView:
convertRectFromBase:
convertRectToBase:
convertSize:fromView:
convertSize:toView:
convertSizeFromBase:
convertSizeToBase:
dataWithEPSInsideRect:
dataWithPDFInsideRect:
didAddSubview:
discardCursorRects
display
displayIfNeeded
displayIfNeededIgnoringOpacity
displayIfNeededInRect:
displayIfNeededInRectIgnoringOpacity:
displayRect:
displayRectIgnoringOpacity:
displayRectIgnoringOpacity:inContext:
dragFile:fromRect:slideBack:event:
dragImage:at:offset:event:pasteboard:source:slideBack:
dragPromisedFilesOfTypes:fromRect:source:slideBack:event:
drawPageBorderWithSize:
drawRect:
drawSheetBorderWithSize:
enclosingMenuItem
enclosingScrollView
endDocument
endPage
enterFullScreenMode:withOptions:
exitFullScreenModeWithOptions:
focusRingType
frame
frameCenterRotation
frameRotation
getRectsBeingDrawn:count:
getRectsExposedDuringLiveResize:count:
gState
heightAdjustLimit
hitTest:
initWithFrame:
inLiveResize
isDescendantOf:
isFlipped
isHidden
isHiddenOrHasHiddenAncestor
isInFullScreenMode
isOpaque
isRotatedFromBase
isRotatedOrScaledFromBase
knowsPageRange:
layer
locationOfPrintRect:
lockFocus
lockFocusIfCanDraw
lockFocusIfCanDrawInContext:
menuForEvent:
mouse:inRect:
mouseDownCanMoveWindow
needsDisplay
needsPanelToBecomeKey
needsToDrawRect:
nextKeyView
nextValidKeyView
opaqueAncestor
pageFooter
pageHeader
performKeyEquivalent:
performMnemonic:
postsBoundsChangedNotifications
postsFrameChangedNotifications
preservesContentDuringLiveResize
previousKeyView
previousValidKeyView
print:
printJobTitle
rectForPage:
rectPreservedDuringLiveResize
reflectScrolledClipView:
registeredDraggedTypes
registerForDraggedTypes:
releaseGState
removeAllToolTips
removeCursorRect:cursor:
removeFromSuperview
removeFromSuperviewWithoutNeedingDisplay
removeToolTip:
removeTrackingArea:
removeTrackingRect:
renewGState
replaceSubview:with:
resetCursorRects
resizeSubviewsWithOldSize:
resizeWithOldSuperviewSize:
rotateByAngle:
scaleUnitSquareToSize:
scrollClipView:toPoint:
scrollPoint:
scrollRect:by:
scrollRectToVisible:
setAlphaValue:
setAutoresizesSubviews:
setAutoresizingMask:
setBackgroundFilters:
setBounds:
setBoundsOrigin:
setBoundsRotation:
setBoundsSize:
setCompositingFilter:
setContentFilters:
setFocusRingType:
setFrame:
setFrameCenterRotation:
setFrameOrigin:
setFrameRotation:
setFrameSize:
setHidden:
setKeyboardFocusRingNeedsDisplayInRect:
setLayer:
setNeedsDisplay:
setNeedsDisplayInRect:
setNextKeyView:
setPostsBoundsChangedNotifications:
setPostsFrameChangedNotifications:
setShadow:
setSubviews:
setToolTip:
setUpGState
setWantsLayer:
shadow
shouldDelayWindowOrderingForEvent:
shouldDrawColor
sortSubviewsUsingFunction:context:
subviews
superview
tag
toolTip
trackingAreas
translateOriginToPoint:
translateRectsNeedingDisplayInRect:by:
unlockFocus
unregisterDraggedTypes
updateTrackingAreas
viewDidEndLiveResize
viewDidHide
viewDidMoveToSuperview
viewDidMoveToWindow
viewDidUnhide
viewWillDraw
viewWillMoveToSuperview:
viewWillMoveToWindow:
viewWillStartLiveResize
viewWithTag:
visibleRect
wantsDefaultClipping
wantsLayer
widthAdjustLimit
willRemoveSubview:
window
writeEPSInsideRect:toPasteboard:
writePDFInsideRect:toPasteboard:
Constants
NSBorderType
Resizing masks
NSToolTipTag
NSTrackingRectTag
Full screen mode
Notifications
NSViewBoundsDidChangeNotification
NSViewFocusDidChangeNotification
NSViewFrameDidChangeNotification
NSViewDidUpdateTrackingAreasNotification
NSViewGlobalFrameDidChangeNotification
Revision History
Index
Companion Guides
View Programming Guide for Cocoa
Cocoa Drawing Guide
Cocoa Event-Handling Guide
Drag and Drop Programming Topics for Cocoa
Printing Programming Topics for Cocoa