Public Member Functions | |
(id) | - initWithFrame: [implementation] |
(void) | - setItemPrototype: [implementation] |
(CPCollectionViewItem) | - itemPrototype [implementation] |
(CPCollectionViewItem) | - newItemForRepresentedObject: [implementation] |
(BOOL) | - acceptsFirstResponder [implementation] |
(BOOL) | - isFirstResponder [implementation] |
(void) | - setContent: [implementation] |
(CPArray) | - content [implementation] |
(CPArray) | - items [implementation] |
(void) | - setSelectable: [implementation] |
(BOOL) | - isSelected [implementation] |
(void) | - setAllowsEmptySelection: [implementation] |
(BOOL) | - allowsEmptySelection [implementation] |
(void) | - setAllowsMultipleSelection: [implementation] |
(BOOL) | - allowsMultipleSelection [implementation] |
(void) | - setSelectionIndexes: [implementation] |
(CPIndexSet) | - selectionIndexes [implementation] |
(void) | - reloadContent [implementation] |
(void) | - tile [implementation] |
(void) | - resizeSubviewsWithOldSize: [implementation] |
(void) | - setMaxNumberOfRows: [implementation] |
(unsigned) | - maxNumberOfRows [implementation] |
(void) | - setMaxNumberOfColumns: [implementation] |
(unsigned) | - maxNumberOfColumns [implementation] |
(unsigned) | - numberOfRows [implementation] |
(unsigned) | - numberOfColumns [implementation] |
(void) | - setMinItemSize: [implementation] |
(CGSize) | - minItemSize [implementation] |
(void) | - setMaxItemSize: [implementation] |
(CGSize) | - maxItemSize [implementation] |
(void) | - mouseUp: [implementation] |
(void) | - mouseDown: [implementation] |
(void) | - mouseDragged: [implementation] |
(void) | - pasteboard:provideDataForType: [implementation] |
(void) | - setVerticalMargin: [implementation] |
(float) | - verticalMargin [implementation] |
(void) | - setDelegate: [implementation] |
(id) | - delegate [implementation] |
(id) | - initWithCoder: [implementation] |
(void) | - encodeWithCoder: [implementation] |
collectionView | the collection view who's selection changed |
collectionView | the collection view that received the double-click | |
index | the index of the item that received the double-click |
collectionView | the collection view to obtain data for | |
indices | the indices to return data for | |
aType | the data type |
collectionView | the collection view the items reside in | |
indices | the indices to obtain drag types |
Definition at line 64 of file CPCollectionView.j.
- (BOOL) acceptsFirstResponder | [implementation] |
Returns YES
by default.
Definition at line 168 of file CPCollectionView.j.
- (BOOL) allowsEmptySelection | [implementation] |
Returns YES
if the user can select no items, NO
otherwise.
Definition at line 256 of file CPCollectionView.j.
- (BOOL) allowsMultipleSelection | [implementation] |
Returns YES
if the user can select multiple items, NO
otherwise.
Definition at line 273 of file CPCollectionView.j.
- (CPArray) content | [implementation] |
Returns the collection view content array
Definition at line 201 of file CPCollectionView.j.
- (id) delegate | [implementation] |
Returns the collection view's delegate
Definition at line 623 of file CPCollectionView.j.
- (void) encodeWithCoder: | (CPCoder) | aCoder | [implementation] |
Definition at line 750 of file CPCollectionView.j.
- (id) initWithCoder: | (CPCoder) | aCoder | [implementation] |
Definition at line 726 of file CPCollectionView.j.
- (id) initWithFrame: | (CGRect) | aFrame | [implementation] |
Definition at line 98 of file CPCollectionView.j.
- (BOOL) isFirstResponder | [implementation] |
Returns whether the receiver is currently the first responder.
Definition at line 176 of file CPCollectionView.j.
- (BOOL) isSelected | [implementation] |
Returns YES
if the collection view is selected, and NO
otherwise.
Definition at line 239 of file CPCollectionView.j.
- (CPCollectionViewItem) itemPrototype | [implementation] |
Returns the current item prototype
Definition at line 140 of file CPCollectionView.j.
- (CPArray) items | [implementation] |
Returns the collection view items.
Definition at line 209 of file CPCollectionView.j.
- (CGSize) maxItemSize | [implementation] |
Returns the current maximum item size.
Definition at line 518 of file CPCollectionView.j.
- (unsigned) maxNumberOfColumns | [implementation] |
Returns the maximum number of columns
Definition at line 457 of file CPCollectionView.j.
- (unsigned) maxNumberOfRows | [implementation] |
Returns the maximum number of rows.
Definition at line 435 of file CPCollectionView.j.
- (CGSize) minItemSize | [implementation] |
Returns the current minimum item size
Definition at line 496 of file CPCollectionView.j.
- (void) mouseDown: | (CPEvent) | anEvent | [implementation] |
Definition at line 529 of file CPCollectionView.j.
- (void) mouseDragged: | (CPEvent) | anEvent | [implementation] |
Definition at line 542 of file CPCollectionView.j.
- (void) mouseUp: | (CPEvent) | anEvent | [implementation] |
Definition at line 523 of file CPCollectionView.j.
- (CPCollectionViewItem) newItemForRepresentedObject: | (id) | anObject | [implementation] |
Returns a collection view item for anObject
.
anObject | the object to be represented. |
Definition at line 149 of file CPCollectionView.j.
- (unsigned) numberOfColumns | [implementation] |
Returns the current number of columns
Definition at line 474 of file CPCollectionView.j.
- (unsigned) numberOfRows | [implementation] |
Returns the current number of rows
Definition at line 465 of file CPCollectionView.j.
- (void) pasteboard: | (CPPasteboard) | aPasteboard | ||
provideDataForType: | (CPString) | aType | ||
[implementation] |
Places the selected items on the specified pasteboard. The items are requested from the collection's delegate.
aPasteboard | the pasteboard to put the items on | |
aType | the format the pasteboard data |
Definition at line 580 of file CPCollectionView.j.
- (void) reloadContent | [implementation] |
Definition at line 312 of file CPCollectionView.j.
- (void) resizeSubviewsWithOldSize: | (CGSize) | aSize | [implementation] |
Definition at line 412 of file CPCollectionView.j.
- (CPIndexSet) selectionIndexes | [implementation] |
Returns a set of the selected indices.
Definition at line 306 of file CPCollectionView.j.
- (void) setAllowsEmptySelection: | (BOOL) | shouldAllowEmptySelection | [implementation] |
Sets whether the user may have no items selected. If YES, mouse clicks not on any item will empty the current selection. The first item will also start off as selected.
shouldAllowMultipleSelection | YES allows the user to select multiple items |
Definition at line 248 of file CPCollectionView.j.
- (void) setAllowsMultipleSelection: | (BOOL) | shouldAllowMultipleSelection | [implementation] |
Sets whether the user can select multiple items.
shouldAllowMultipleSelection | YES allows the user to select multiple items |
Definition at line 265 of file CPCollectionView.j.
- (void) setContent: | (CPArray) | anArray | [implementation] |
Sets the content of the collection view to the content in anArray
. This array can be of any type, and each element will be passed to the setRepresentedObject:
method. It's the responsibility of your custom collection view item to interpret the object.
anArray | the content array |
Definition at line 188 of file CPCollectionView.j.
- (void) setDelegate: | (id) | aDelegate | [implementation] |
Sets the collection view's delegate
aDelegate | the new delegate |
Definition at line 615 of file CPCollectionView.j.
- (void) setItemPrototype: | (CPCollectionViewItem) | anItem | [implementation] |
Sets the item prototype to anItem
anItem | the new item prototype |
Definition at line 128 of file CPCollectionView.j.
- (void) setMaxItemSize: | (CGSize) | aSize | [implementation] |
Sets the maximum item size.
aSize | the new maximum item size |
Definition at line 505 of file CPCollectionView.j.
- (void) setMaxNumberOfColumns: | (unsigned) | aMaxNumberOfColumns | [implementation] |
Sets the maximum number of columns.
aMaxNumberOfColumns | the new maximum number of columns |
Definition at line 444 of file CPCollectionView.j.
- (void) setMaxNumberOfRows: | (unsigned) | aMaxNumberOfRows | [implementation] |
Sets the maximum number of rows.
aMaxNumberOfRows | the new maximum number of rows |
Definition at line 422 of file CPCollectionView.j.
- (void) setMinItemSize: | (CGSize) | aSize | [implementation] |
Sets the minimum size for an item
aSize | the new minimum item size |
Definition at line 483 of file CPCollectionView.j.
- (void) setSelectable: | (BOOL) | isSelectable | [implementation] |
Sets whether the user is allowed to select items
isSelectable | YES allows the user to select items. |
Definition at line 219 of file CPCollectionView.j.
- (void) setSelectionIndexes: | (CPIndexSet) | anIndexSet | [implementation] |
Sets the selected items based on the provided indices.
anIndexSet | the set of items to be selected |
Definition at line 282 of file CPCollectionView.j.
- (void) setVerticalMargin: | (float) | aVerticalMargin | [implementation] |
Sets the collection view's vertical spacing between elements.
aVerticalMargin | the number of pixels to place between elements |
Definition at line 592 of file CPCollectionView.j.
- (void) tile | [implementation] |
Definition at line 343 of file CPCollectionView.j.
- (float) verticalMargin | [implementation] |
Gets the collection view's current vertical spacing between elements.
Definition at line 606 of file CPCollectionView.j.