Deprecated NSCollectionViewItem Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Available in OS X v10.5 through OS X v10.5

representedObject

Returns the receiver’s represented object. (Available in OS X v10.5 through OS X v10.5. This method is deprecated. See the NSViewController superclass.)

- (id)representedObject
Return Value

The receiver’s represented object.

Availability
  • Available in OS X v10.5 through OS X v10.5.
Declared In
NSCollectionView.h

setRepresentedObject:

Sets the receiver’s represented object to the specified model object. (Available in OS X v10.5 through OS X v10.5. This method is deprecated and replaced by newItemForRepresentedObject: in the NSViewController superclass.)

- (void)setRepresentedObject:(id)object
Parameters
object

The receiver’s model object.

Availability
  • Available in OS X v10.5 through OS X v10.5.
Declared In
NSCollectionView.h

setView:

Sets the view the receiver uses to display its represented object. (Available in OS X v10.5 through OS X v10.5. This method is deprecated and replaced by setView:, in the NSViewController superclass.)

- (void)setView:(NSView *)view
Parameters
view

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

Availability
  • Available in OS X v10.5 through OS X v10.5.
Declared In
NSCollectionView.h

view

Returns the view the receiver uses to display its represented object. (Available in OS X v10.5 through OS X v10.5. This method is deprecated and replaced by view, in the NSViewController superclass.)

- (NSView *)view
Return Value

The view the receiver uses to display its represented object.

Availability
  • Available in OS X v10.5 through OS X v10.5.
Declared In
NSCollectionView.h