macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

NSComboBoxクラス

INDEX>AppKit> NSComboBox

**

継承 NSObject
NSResponder
NSView
NSControl
NSTextField
NSComboBox
準拠 NSObject (NSObject)
NSAccessibility
NSAccessibilityElement
NSAccessibilityNavigableStaticText
NSAnimatablePropertyContainer
NSAppearanceCustomization
NSCoding
NSDraggingDestination
NSObject
NSUserInterfaceItemIdentification
NSUserInterfaceValidations
フレームワーク /System/Library/Frameworks/AppKit.framework
使用可能 OS X 10.0以降
定義
インポート文 @import AppKit;

概要

メソッドとプロパティ

Setting Display Attributes

hasVerticalScroller
intercellSpacing
buttonBordered
itemHeight
numberOfVisibleItems

Setting a Data Source

dataSource
usesDataSource

Configuring the Combo Box Items

- addItemsWithObjectValues:
- addItemWithObjectValue:
- insertItemWithObjectValue:atIndex:
objectValues
- removeAllItems
- removeItemAtIndex:
- removeItemWithObjectValue:
numberOfItems

Manipulating the Displayed List

- indexOfItemWithObjectValue:
- itemObjectValueAtIndex:
- noteNumberOfItemsChanged
- reloadData
- scrollItemAtIndexToTop:
- scrollItemAtIndexToVisible:

Manipulating the Selection

- deselectItemAtIndex:
indexOfSelectedItem
objectValueOfSelectedItem
- selectItemAtIndex:
- selectItemWithObjectValue:

Completing the Text Field

completes

Accessing the Delegate

- delegate
- setDelegate:

Notifications

NSComboBoxSelectionDidChangeNotification
NSComboBoxSelectionIsChangingNotification
NSComboBoxWillDismissNotification
NSComboBoxWillPopUpNotification




定数

参照

更新時バージョン

OS X 10.11