NSViewクラス
NSView
解説
表示に使用するビューのクラスです
継承 | NSResponder : NSObject |
準拠 | NSAnimatablePropertyContainer |
NSCoding (NSResponder) | |
NSObject (NSObject) | |
フレームワーク | /System/Library/Frameworks/AppKit.framework |
使用可能 | Mac OS X v10.0以降 |
定義 | NSClipView.h |
NSMenuItem.h | |
NSView.h | |
定数ガイド | |
関連するサンプル |
概要
表示に使用するビューのクラスです。
サブクラス化の注意
参照
メソッド
ビュー階層の操作
superview
setSubviews
subviews
window
addSubview
addSubview:positioned:relativeTo:
didAddSubview:
removeFromSuperview
removeFromSuperviewWithoutNeedingDisplay
replaceSubview:with:
isDescendantOf:
opaqueAncestor
ancestorSharedWithView
レシーバーと別のビューとで共有される最も近い親ビューを返します。
sortSubviewsUsingFunction:context
viewDidMoveToSuperview
viewDidMoveToWindow
viewWillMoveToSuperview
viewWillMoveToWindow
willRemoveSubview
enclosingMenuItem
タグで検索
ベース座標の変換
convertPointToBase
convertPointFromBase
convertSizeToBase
convertSizeFromBase
convertRectToBase
convertRectFromBase
座標の変換
convertPoint:fromView:
convertPoint:toView:
convertSize:fromView:
convertSize:toView
convertRect:fromView:
convertRect:toView:
centerScanRect
通知のコントロール
setPostsFrameChangedNotifications
postsFrameChangedNotifications
setPostsBoundsChangedNotifications
postsBoundsChangedNotifications
サブビューのリサイズ
resizeSubviewsWithOldSize
resizeWithOldSuperviewSize
setAutoresizesSubviews
autoresizesSubviews
setAutoresizingMask
autoresizingMask
表示
setNeedsDisplay
setNeedsDisplayInRect
needsDisplay
display
displayRect
displayRectIgnoringOpacity
displayRectIgnoringOpacity:inContext:
displayIfNeeded
displayIfNeededInRect
displayIfNeededIgnoringOpacity
displayIfNeededInRectIgnoringOpacity
translateRectsNeedingDisplayInRect:by:
isOpaque
viewWillDraw
フォーカスリング描画
setKeyboardFocusRingNeedsDisplayInRect
defaultFocusRingType
setFocusRingType
focusRingType
描画
canDrawConcurrently
setCanDrawConcurrently
drawRect
visibleRect
canDraw
shouldDrawColor
getRectsBeingDrawn:count
needsToDrawRect
wantsDefaultClipping
bitmapImageRepForCachingDisplayInRect:
cacheDisplayInRect:toBitmapImageRep:
ライブリサイズの管理
inLiveResize
preservesContentDuringLiveResize
getRectsExposedDuringLiveResize:count
rectPreservedDuringLiveResize
viewWillStartLiveResize
viewDidEndLiveResize
GStateの管理
allocateGState
GStateを維持させます。
gState
setUpGState
renewGState
releaseGState
イベントのハンドリング
acceptsFirstMouse:
hitTest
mouse:inRect
performKeyEquivalent
performMnemonic
mouseDownCanMoveWindow
inputContext
ドラッグ操作
dragImage:at:offset:event:pasteboard:source:slideBack
dragFile:fromRect:slideBack:event
registerForDraggedTypes
registeredDraggedTypes
unregisterDraggedTypes
shouldDelayWindowOrderingForEvent
dragPromisedFilesOfTypes:fromRect:source:slideBack:event
スクローリング
scrollPoint
scrollRectToVisible
autoscroll
イベントの場所まで自動スクロールします。
adjustScroll:
変更された矩形を返します。
scrollRect:by
enclosingScrollView
scrollClipView:toPoint:
reflectScrolledClipView:
キービューループ管理
canBecomeKeyView
needsPanelToBecomeKey
setNextKeyView:
nextKeyView
nextValidKeyView
previousKeyView
previousValidKeyView
印刷
print
beginPageInRect:atPlacement
dataWithEPSInsideRect
dataWithPDFInsideRect
printJobTitle
pageFooter
pageHeader
writeEPSInsideRect:toPasteboard
writePDFInsideRect:toPasteboard
drawPageBorderWithSize
drawSheetBorderWithSize
ページネーション
heightAdjustLimit
widthAdjustLimit
adjustPageWidthNew:left:right:limit:
adjustPageHeightNew:top:bottom:limit:
knowsPageRange:
rectForPage
locationOfPrintRect:
レンダリング
– beginDocument
印刷セッションの最初に呼ばれます。
endDocument
endPage
コアアニメーションレイヤー
layer
setLayer
wantsLayer
レシーバーがレイヤーを使うかどうかを示すブール値を返します。
setWantsLayer
makeBackingLayer
layerContentsPlacement
setLayerContentsPlacement
layerContentsRedrawPolicy
setLayerContentsRedrawPolicy
コアアニメーションレイヤープロパティ
setFrameCenterRotation
frameCenterRotation
setAlphaValue
alphaValue
setBackgroundFilters
backgroundFilters
setCompositingFilter
compositingFilter
setContentFilters
contentFilters
setShadow
shadow
表示ウインドウの定義
showDefinitionForAttributedString:atPoint
showDefinitionForAttributedString:range:options:baselineOriginProvider
タッチイベントのハンドリング
acceptsTouchEvents
setAcceptsTouchEvents
wantsRestingTouches
setWantsRestingTouches