CPObjectCPCollectionViewItem
@implementation CPCollectionViewItem : CPObject
Represents an object inside a CPCollectionView
.
Method Summary | |
---|---|
-(id) | initWithCoder:(CPCoder)aCoder Initializes the view item by unarchiving data from a coder. |
-(id) | initWithCoder:(CPCoder)aCoder Initializes the view item by unarchiving data from a coder. |
-(CPCollectionView) | collectionView Returns the collection view of which this item is a part. |
-(void) | encodeWithCoder:(CPCoder)aCoder Archives the colletion view item to the provided coder. |
-(void) | encodeWithCoder:(CPCoder)aCoder Archives the colletion view item to the provided coder. |
-(BOOL) | isSelected Returns YES if the item is currently selected. |
-(id) | representedObject Returns the object represented by this view item. |
-(void) | setRepresentedObject:(id)anObject Sets the object to be represented by this item. |
-(void) | setSelected:(BOOL)shouldBeSelected Sets whether this view item should be selected. |
-(void) | setView:(CPView)aView Sets the view that is used represent this object. |
-(CPView) | view Returns the view that represents this object. |
Method Detail |
---|
-(id)initWithCoder:(CPCoder)aCoder
aCoder
- the coder from which the data will be unarchived-(id)initWithCoder:(CPCoder)aCoder
aCoder
- the coder from which the data will be unarchived-(CPCollectionView)collectionView
-(void)encodeWithCoder:(CPCoder)aCoder
aCoder
- the coder to which the view item should be archived-(void)encodeWithCoder:(CPCoder)aCoder
aCoder
- the coder to which the view item should be archived-(BOOL)isSelected
YES
if the item is currently selected. NO
if the item is not selected.-(id)representedObject
-(void)setRepresentedObject:(id)anObject
anObject
- the object to be represented-(void)setSelected:(BOOL)shouldBeSelected
shouldBeSelected
- YES
makes the item selected. NO
deselects it.-(void)setView:(CPView)aView
aView
- the view used to represent this object-(CPView)view
Created on Sat Sep 13 14:15:43 PDT 2008