| Inherits from | |
| Conforms to | NSCopying NSCoding (NSViewController) NSCoding (NSResponder) NSObject (NSObject) NSEditor (Informal Protocol) (NSViewController) NSEditorRegistration (Informal Protocol) (NSViewController) |
| Framework | /System/Library/Frameworks/AppKit.framework |
| Availability | Available in Mac OS X v10.5 and later. |
| Declared in | NSCollectionView.h |
NSCollectionViewItem class is a controller that manages the relationship between a compound view and the model object that provides its content. Instances of this class are replicated in a NSCollectionView.
Important: In Mac OS X v10.5, the superclass of the NSCollectionViewItem class was NSObject. In Mac OS X v10.6 and later, NSCollectionViewItem is now a subclass of NSViewController. This change was made to improve how the view is replicated within the NSCollectionView. NSCollectionViewItem remains binary compatible with the previous implementation and unarchiving is correctly handled.
Returns the receiver’s collection view.
- (NSCollectionView *)collectionView
The receiver’s collection view.
NSCollectionView.hReturns the selection state of the receiver.
- (BOOL)isSelected
YES if the receiver is selected, otherwise NO.
NSCollectionView.hReturns the receiver’s represented object.
- (id)representedObject
The receiver’s represented object.
NSCollectionView.hSets the receiver’s represented object to the specified model object.
- (void)setRepresentedObject:(id)object
The receiver’s model object.
NSCollectionView.hSets the selection state of the receiver.
- (void)setSelected:(BOOL)flag
YES if the receiver is selected, otherwise NO.
NSCollectionView.hSets the view the receiver uses to display its represented object.
- (void)setView:(NSView *)view
The view that is used to display the receiver’s represented object.
NSCollectionView.hReturns the view the receiver uses to display its represented object.
- (NSView *)view
The view the receiver uses to display its represented object.
NSCollectionView.h© 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-05-01)