macOS/iOS API解説

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

目次

NSCollectionViewクラス

INDEX>AppKit> NSCollectionView

**

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

developer.apple.com

概要

メソッドとプロパティ

Modifying the Collection View Item

itemPrototype
- newItemForRepresentedObject:

Working with the Responder Chain

firstResponder

Setting the Content

content

Setting the Selection Mode

selectable
allowsMultipleSelection
selectionIndexes

Laying out the Collection View

maxNumberOfRows
maxNumberOfColumns
minItemSize
maxItemSize

Modifying the Background

backgroundColors

Getting and Setting the Delegate

delegate

Drag and Drop Support

- draggingImageForItemsAtIndexes:withEvent:offset:
- setDraggingSourceOperationMask:forLocal:

Getting a Collection Item and its Frame

- itemAtIndex:
- frameForItemAtIndex:
- frameForItemAtIndex:withNumberOfItems:

Constants

NSCollectionViewDropOperation



定数

参照

更新時バージョン

OS X 10.11