読者です 読者をやめる 読者になる 読者になる

Cocoa API解説(macOS/iOS)

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。

目次

NSCellクラス

INDEX>AppKit>NSCell

**

継承 NSObject
NSCell
NSActionCell
NSBrowserCell
NSImageCell
NSTextAttachmentCell
準拠 NSObject (NSObject)
NSAccessibility
NSAccessibilityElement
NSCoding
NSCopying
NSUserInterfaceItemIdentification
フレームワーク /System/Library/Frameworks/AppKit.framework
使用可能 OS X 10.0以降
定義
インポート文 @import AppKit;

developer.apple.com

概要

メソッドとプロパティ

Initializing a Cell

- initImageCell:
- initTextCell:

Managing Cell Values

objectValue
hasValidObjectValue
intValue
integerValue
stringValue
doubleValue
floatValue

Managing Cell Attributes

- setCellAttribute:to:
- cellAttribute:
type
enabled
allowsUndo

Managing Display Attributes

bezeled
bordered
opaque
controlTint
backgroundStyle
interiorBackgroundStyle

Managing Cell State

allowsMixedState
nextState
- setNextState
state

Modifying Textual Attributes

editable
selectable
scrollable
alignment
font
lineBreakMode
truncatesLastVisibleLine
wraps
baseWritingDirection
attributedStringValue
allowsEditingTextAttributes
importsGraphics
- setUpFieldEditorAttributes:
title

Managing the Target and Action

action
target
continuous
- sendActionOn:

Managing the Image

image

Managing the Tag

tag

Formatting and Validating Data

formatter

Managing Menus

+ defaultMenu
menu
- menuForEvent:inRect:ofView:

Comparing Cells

- compare:

Respond to Keyboard Events

acceptsFirstResponder
showsFirstResponder
refusesFirstResponder
- performClick:

Deriving Values

- takeObjectValueFrom:
- takeIntegerValueFrom:
- takeIntValueFrom:
- takeStringValueFrom:
- takeDoubleValueFrom:
- takeFloatValueFrom:

Representing an Object

representedObject

Tracking the Mouse

- trackMouse:inRect:ofView:untilMouseUp:
- startTrackingAt:inView:
- continueTracking:at:inView:
- stopTracking:at:inView:mouseIsUp:
mouseDownFlags
+ prefersTrackingUntilMouseUp
- getPeriodicDelay:interval:

Hit Testing

- hitTestForEvent:inRect:ofView:

Managing the Cursor

- resetCursorRect:inView:

Handling Keyboard Alternatives

keyEquivalent

Dragging Cells

- draggingImageComponentsWithFrame:inView:

Managing Focus Rings

- drawFocusRingMaskWithFrame:inView:
- focusRingMaskBoundsForFrame:inView:
+ defaultFocusRingType
focusRingType

Determining Cell Size

- calcDrawInfo:
cellSize
- cellSizeForBounds:
- drawingRectForBounds:
- imageRectForBounds:
- titleRectForBounds:
controlSize

Drawing and Highlighting

- drawWithFrame:inView:
- highlightColorWithFrame:inView:
- drawInteriorWithFrame:inView:
controlView
- highlight:withFrame:inView:
highlighted

Editing and Selecting Text

- editWithFrame:inView:editor:delegate:event:
- selectWithFrame:inView:editor:delegate:start:length:
sendsActionOnEndEditing
- endEditing:
wantsNotificationForMarkedText
- fieldEditorForView:
usesSingleLineMode

Managing Expansion Frames

- expansionFrameWithFrame:inView:
- drawWithExpansionFrame:inView:

User Interface Layout Direction

userInterfaceLayoutDirection

Deprecated Methods

- setEntryType:
(OS X v10.0)
- entryType
(OS X v10.0)
- isEntryAcceptable:
Deprecated in OS X v 10.0 and later
- setFloatingPointFormat:left:right:
(OS X v10.0)
- setTitleWithMnemonic:
(OS X v10.8)
- mnemonic
(OS X v10.8)
- setMnemonicLocation:
(OS X v10.8)
- mnemonicLocation
(OS X v10.8)

Constants

NSCellType
NSCellAttribute
NSCellImagePosition
NSImageScaling
NSCellStateValue
NSCellStyleMask
NSControlTint
NSControlSize
NSCellHitResult
NSBackgroundStyle
Deprecated Scaling Constants
Data Entry Types

Notifications

NSControlTintDidChangeNotification



定数

参照

更新時バージョン

OS X 10.11