#import <CPCollectionView.h>
Additional Inherited Members | |
![]() | |
(CPMenu) | + defaultMenu |
(CPString) | + defaultThemeClass |
(void) | + initialize |
(BOOL) | + isHighDPIDrawingEnabled |
(CPSet) | + keyPathsForValuesAffectingBounds |
(CPSet) | + keyPathsForValuesAffectingFrame |
(void) | + setHighDPIDrawingEnabled: |
(CPDictionary) | + themeAttributes |
Definition at line 2 of file CPCollectionView.h.
|
implementation |
Returns YES
by default.
Reimplemented from CPResponder.
Definition at line 315 of file CPCollectionView.j.
|
implementation |
Returns YES
if the user can select no items, NO
otherwise.
Definition at line 407 of file CPCollectionView.j.
|
implementation |
Returns YES
if the user can select multiple items, NO
otherwise.
Definition at line 424 of file CPCollectionView.j.
|
implementation |
Definition at line 803 of file CPCollectionView.j.
|
implementation |
Returns the collection view content array
Definition at line 350 of file CPCollectionView.j.
|
implementation |
Returns the collection view's delegate
Definition at line 904 of file CPCollectionView.j.
|
implementation |
Provided by category CPCollectionView(KeyboardInteraction).
Definition at line 1329 of file CPCollectionView.j.
|
implementation |
Definition at line 612 of file CPCollectionView.j.
|
implementation |
Provided by category CPCollectionView(DragAndDrop).
Definition at line 1110 of file CPCollectionView.j.
|
implementation |
Provided by category CPCollectionView(DragAndDrop).
Definition at line 1053 of file CPCollectionView.j.
|
implementation |
Provided by category CPCollectionView(DragAndDrop).
Definition at line 1105 of file CPCollectionView.j.
|
implementation |
Provided by category CPCollectionView(DragAndDrop).
Definition at line 1068 of file CPCollectionView.j.
|
implementation |
Provided by category CPCollectionView(DragAndDrop).
Definition at line 1041 of file CPCollectionView.j.
|
implementation |
Archives the view to a coder.
aCoder | the object into which the view's data will be archived. |
Reimplemented from CPView.
Provided by category CPCollectionView(CPCoding).
Definition at line 1556 of file CPCollectionView.j.
|
implementation |
Definition at line 943 of file CPCollectionView.j.
|
implementation |
Definition at line 948 of file CPCollectionView.j.
|
implementation |
Initializes the view from an archive.
aCoder | the coder from which to initialize |
Reimplemented from CPView.
Provided by category CPCollectionView(CPCoding).
Definition at line 1531 of file CPCollectionView.j.
|
implementation |
Initializes the receiver for usage with the specified bounding rectangle
Reimplemented from CPView.
Definition at line 132 of file CPCollectionView.j.
|
implementation |
Returns whether the receiver is currently the first responder.
Definition at line 323 of file CPCollectionView.j.
|
implementation |
Returns YES
if the collection view is selectable, and NO
otherwise.
Definition at line 390 of file CPCollectionView.j.
|
implementation |
Definition at line 938 of file CPCollectionView.j.
|
implementation |
Returns the current item prototype
Definition at line 286 of file CPCollectionView.j.
|
implementation |
Returns the collection view items.
Definition at line 358 of file CPCollectionView.j.
|
implementation |
Notifies the receiver that the user has pressed a key.
anEvent | information about the key press |
Reimplemented from CPResponder.
Provided by category CPCollectionView(KeyboardInteraction).
Definition at line 1344 of file CPCollectionView.j.
|
implementation |
Returns the current maximum item size.
Definition at line 779 of file CPCollectionView.j.
|
implementation |
Returns the maximum number of columns
Definition at line 709 of file CPCollectionView.j.
|
implementation |
Returns the maximum number of rows.
Definition at line 687 of file CPCollectionView.j.
Reimplemented from CPView.
Definition at line 912 of file CPCollectionView.j.
|
implementation |
Returns the current minimum item size
Definition at line 754 of file CPCollectionView.j.
|
implementation |
Notifies the receiver that the user has clicked the mouse down in its area.
anEvent | contains information about the click |
Reimplemented from CPView.
Definition at line 814 of file CPCollectionView.j.
|
implementation |
Notifies the receiver that the user has initiated a drag over it. A drag is a mouse movement while the left button is down.
anEvent | contains information about the drag |
Reimplemented from CPResponder.
Provided by category CPCollectionView(DragAndDrop).
Definition at line 992 of file CPCollectionView.j.
|
implementation |
Notifies the receiver that the user has released the left mouse button.
anEvent | contains information about the release |
Reimplemented from CPResponder.
Definition at line 808 of file CPCollectionView.j.
|
implementation |
Provided by category CPCollectionView(KeyboardInteraction).
Definition at line 1301 of file CPCollectionView.j.
|
implementation |
Provided by category CPCollectionView(KeyboardInteraction).
Definition at line 1306 of file CPCollectionView.j.
|
implementation |
Provided by category CPCollectionView(KeyboardInteraction).
Definition at line 1273 of file CPCollectionView.j.
|
implementation |
Provided by category CPCollectionView(KeyboardInteraction).
Definition at line 1282 of file CPCollectionView.j.
|
implementation |
Provided by category CPCollectionView(KeyboardInteraction).
Definition at line 1291 of file CPCollectionView.j.
|
implementation |
Provided by category CPCollectionView(KeyboardInteraction).
Definition at line 1296 of file CPCollectionView.j.
|
implementation |
Provided by category CPCollectionView(KeyboardInteraction).
Definition at line 1311 of file CPCollectionView.j.
|
implementation |
Provided by category CPCollectionView(KeyboardInteraction).
Definition at line 1320 of file CPCollectionView.j.
|
implementation |
Returns a collection view item for anObject
.
anObject | the object to be represented. |
Definition at line 295 of file CPCollectionView.j.
|
implementation |
Returns the current number of columns
Definition at line 726 of file CPCollectionView.j.
|
implementation |
Returns the current number of rows
Definition at line 717 of file CPCollectionView.j.
|
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 |
Provided by category CPCollectionView(DragAndDrop).
Definition at line 976 of file CPCollectionView.j.
|
implementation |
Provided by category CPCollectionView(DragAndDrop).
Definition at line 1126 of file CPCollectionView.j.
|
implementation |
Provided by category CPCollectionView(Deprecated).
Definition at line 1359 of file CPCollectionView.j.
|
implementation |
Provided by category CPCollectionView(Deprecated).
Definition at line 1368 of file CPCollectionView.j.
|
implementation |
Definition at line 466 of file CPCollectionView.j.
|
implementation |
Initiates -superviewSizeChanged
: messages to subviews.
aSize | the size for the subviews |
Reimplemented from CPView.
Definition at line 510 of file CPCollectionView.j.
|
implementation |
Notifies subviews that the superview changed size.
aSize | the size of the old superview |
Reimplemented from CPView.
Definition at line 515 of file CPCollectionView.j.
|
implementation |
Returns a set of the selected indices.
Definition at line 461 of file CPCollectionView.j.
|
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 399 of file CPCollectionView.j.
|
implementation |
Sets whether the user can select multiple items.
shouldAllowMultipleSelection | YES allows the user to select multiple items |
Definition at line 416 of file CPCollectionView.j.
|
implementation |
Determines automatic resizing behavior.
aMask | a bit mask with options |
Reimplemented from CPView.
Provided by category CPCollectionView(KeyboardInteraction).
Definition at line 1349 of file CPCollectionView.j.
|
implementation |
Definition at line 784 of file CPCollectionView.j.
|
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.
If the new content array is smaller than the previous one, note that [receiver selectionIndexes] may refer to out of range indices. selectionIndexes
is not changed as a result of calling the setContent:
method.
anArray | a content array |
Definition at line 340 of file CPCollectionView.j.
|
implementation |
Set the delegate of the receiver
aDelegate | the delegate object for the collectionView. |
Definition at line 193 of file CPCollectionView.j.
|
implementation |
Sets the item prototype to \c anItem
anItem | the new item prototype. |
Definition at line 273 of file CPCollectionView.j.
|
implementation |
Sets the maximum item size.
aSize | the new maximum item size |
Definition at line 763 of file CPCollectionView.j.
|
implementation |
Sets the maximum number of columns.
aMaxNumberOfColumns | the new maximum number of columns |
Definition at line 696 of file CPCollectionView.j.
|
implementation |
Sets the maximum number of rows.
aMaxNumberOfRows | the new maximum number of rows |
Definition at line 674 of file CPCollectionView.j.
|
implementation |
Sets the minimum size for an item
aSize | the new minimum item size |
Definition at line 735 of file CPCollectionView.j.
|
implementation |
Sets whether the user is allowed to select items
isSelectable | YES allows the user to select items. |
Definition at line 368 of file CPCollectionView.j.
|
implementation |
Sets the selected items based on the provided indices.
anIndexSet | the set of items to be selected |
Definition at line 433 of file CPCollectionView.j.
|
implementation |
Synthesized accessor method.
Provided by category CPCollectionView(CPSynthesizedAccessors).
Definition at line 885 of file CPCollectionView.j.
|
implementation |
Sets the collection view's vertical spacing between elements.
aVerticalMargin | the number of pixels to place between elements |
Definition at line 875 of file CPCollectionView.j.
|
implementation |
Definition at line 527 of file CPCollectionView.j.
|
implementation |
Definition at line 532 of file CPCollectionView.j.
|
implementation |
Synthesized accessor method.
Provided by category CPCollectionView(CPSynthesizedAccessors).
Definition at line 1584 of file CPCollectionView.j.
|
implementation |
Gets the collection view's current vertical spacing between elements.
Definition at line 896 of file CPCollectionView.j.