Next Page > Hide TOC

NSCollectionViewItem Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/AppKit.framework
Availability
Available in Mac OS X v10.5 and later.
Declared in
NSCollectionView.h

Overview

NSCollectionViewItem is a controller that manages the relationship between a compound view and the model object that provides its content.

Tasks

Setting the Represented Object

Modifying the View

Selection the Selection

Parent Collection View

Instance Methods

collectionView

Returns the receiver’s collection view.

- (NSCollectionView *)collectionView

Return Value

The receiver’s collection view.

Availability
Declared In
NSCollectionView.h

isSelected

Returns the selection state of the receiver.

- (BOOL)isSelected

Return Value

YES if the receiver is selected, otherwise NO.

Availability
Declared In
NSCollectionView.h

representedObject

Returns the receiver’s represented object.

- (id)representedObject

Return Value

The receiver’s represented object.

Availability
Declared In
NSCollectionView.h

setRepresentedObject:

Sets the receiver’s represented object to the specified model object.

- (void)setRepresentedObject:(id)object

Parameters
object

The receiver’s model object.

Availability
Declared In
NSCollectionView.h

setSelected:

Sets the selection state of the receiver.

- (void)setSelected:(BOOL)flag

Parameters
flag

YES if the receiver is selected, otherwise NO.

Availability
Declared In
NSCollectionView.h

setView:

Sets the view the receiver uses to display its represented object.

- (void)setView:(NSView *)view

Parameters
view

The view that is used to display the receiver’s represented object.

Availability
Declared In
NSCollectionView.h

view

Returns the view the receiver uses to display its represented object.

- (NSView *)view

Return Value

The view the receiver uses to display its represented object.

Availability
Declared In
NSCollectionView.h

Next Page > Hide TOC


© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-12-28)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.