API  0.9.6
 All Classes Files Functions Variables Macros Modules Pages
CPCollectionView Class Reference

#import <CPCollectionView.h>

+ Inheritance diagram for CPCollectionView:

Instance Methods

(BOOL) - acceptsFirstResponder
 
(BOOL) - allowsEmptySelection
 
(BOOL) - allowsMultipleSelection
 
(void) - awakeFromCib
 
(CPArray- backgroundColors
 
(CPArray- content
 
(id) - delegate
 
(void) - deleteBackward:
 
(void) - encodeWithCoder:
 
(CGRect) - frameForItemAtIndex:
 
(CGRect) - frameForItemsAtIndexes:
 
(id) - initWithCoder:
 
(id) - initWithFrame:
 
(BOOL) - isFirstResponder
 
(BOOL) - isSelectable
 
(CPCollectionViewItem- itemAtIndex:
 
(CPCollectionViewItem- itemPrototype
 
(CPArray- items
 
(void) - keyDown:
 
(CGSize) - maxItemSize
 
(unsigned) - maxNumberOfColumns
 
(unsigned) - maxNumberOfRows
 
(CPMenu- menuForEvent:
 
(CGSize) - minItemSize
 
(void) - mouseDown:
 
(void) - mouseDragged:
 
(void) - mouseUp:
 
(void) - moveDown:
 
(void) - moveDownAndModifySelection:
 
(void) - moveLeft:
 
(void) - moveLeftAndModifySelection:
 
(void) - moveRight:
 
(void) - moveRightAndModifySelection:
 
(void) - moveUp:
 
(void) - moveUpAndModifySelection:
 
(CPCollectionViewItem- newItemForRepresentedObject:
 
(unsigned) - numberOfColumns
 
(unsigned) - numberOfRows
 
(void) - pasteboard:provideDataForType:
 
(CGRect) - rectForItemAtIndex:
 
(CGRect) - rectForItemsAtIndexes:
 
(void) - reloadContent
 
(void) - resizeSubviewsWithOldSize:
 
(CPIndexSet- selectionIndexes
 
(void) - setAllowsEmptySelection:
 
(void) - setAllowsMultipleSelection:
 
(void) - setBackgroundColors:
 
(void) - setContent:
 
(void) - setDelegate:
 
(void) - setItemPrototype:
 
(void) - setMaxItemSize:
 
(void) - setMaxNumberOfColumns:
 
(void) - setMaxNumberOfRows:
 
(void) - setMinItemSize:
 
(void) - setSelectable:
 
(void) - setSelectionIndexes:
 
(void) - setVerticalMargin:
 
(void) - tile
 
(float) - verticalMargin
 
- Instance Methods inherited from CPView
(BOOL) - acceptsFirstMouse:
 
(void) - addSubview:
 
(void) - addSubview:positioned:relativeTo:
 
(CGRect) - adjustScroll:
 
(float) - alphaValue
 
(BOOL) - autoresizesSubviews
 
(unsigned) - autoresizingMask
 
(BOOL) - autoscroll:
 
(CPColor- backgroundColor
 
(CGRect) - bounds
 
(CGPoint) - boundsOrigin
 
(CGSize) - boundsSize
 
(BOOL) - canBecomeKeyView
 
(CGPoint) - center
 
(BOOL) - clipsToBounds
 
(CGPoint) - convertPoint:fromView:
 
(CGPoint) - convertPoint:toView:
 
(CGPoint) - convertPointFromBase:
 
(CGPoint) - convertPointToBase:
 
(CGRect) - convertRect:fromView:
 
(CGRect) - convertRect:toView:
 
(CGRect) - convertRectFromBase:
 
(CGRect) - convertRectToBase:
 
(CGSize) - convertSize:fromView:
 
(CGSize) - convertSize:toView:
 
(CPView- createEphemeralSubviewNamed:
 
(id) - currentValueForThemeAttribute:
 
(void) - didAddSubview:
 
(void) - display
 
(void) - displayIfNeeded
 
(void) - displayIfNeededInRect:
 
(void) - displayRect:
 
(void) - displayRectIgnoringOpacity:inContext:
 
(void) - dragImage:at:offset:event:pasteboard:source:slideBack:
 
(void) - dragView:at:offset:event:pasteboard:source:slideBack:
 
(void) - drawRect:
 
(CPMenuItem- enclosingMenuItem
 
(CPScrollView- enclosingScrollView
 
(BOOL) - enterFullScreenMode
 
(BOOL) - enterFullScreenMode:withOptions:
 
(CPView- ephemeralSubviewNamed:
 
(void) - exitFullScreenMode
 
(void) - exitFullScreenModeWithOptions:
 
(CGRect) - frame
 
(CGPoint) - frameOrigin
 
(CGSize) - frameSize
 
(BOOL) - hasThemeAttribute:
 
(BOOL) - hasThemeState:
 
(CPView- hitTest:
 
(BOOL) - hitTests
 
(id) - init
 
(BOOL) - inLiveResize
 
(BOOL) - isDescendantOf:
 
(BOOL) - isFlipped
 
(BOOL) - isHidden
 
(BOOL) - isHiddenOrHasHiddenAncestor
 
(BOOL) - isInFullScreenMode
 
(BOOL) - isOpaque
 
(CALayer- layer
 
(CPView- layoutEphemeralSubviewNamed:positioned:relativeToEphemeralSubviewNamed:
 
(void) - layoutIfNeeded
 
(void) - layoutSubviews
 
(void) - lockFocus
 
(BOOL) - mouseDownCanMoveWindow
 
(BOOL) - needsDisplay
 
(BOOL) - needsPanelToBecomeKey
 
(CPView- nextKeyView
 
(CPView- nextValidKeyView
 
(BOOL) - performKeyEquivalent:
 
(BOOL) - postsBoundsChangedNotifications
 
(BOOL) - postsFrameChangedNotifications
 
(CPView- previousKeyView
 
(CPView- previousValidKeyView
 
(CGRect) - rectForEphemeralSubviewNamed:
 
(void) - reflectScrolledClipView:
 
(CPArray- registeredDraggedTypes
 
(void) - registerForDraggedTypes:
 
(void) - registerThemeValues:
 
(void) - registerThemeValues:inherit:
 
(void) - removeFromSuperview
 
(void) - replaceSubview:with:
 
(void) - resizeWithOldSuperviewSize:
 
(void) - rightMouseDown:
 
(void) - scrollClipView:toPoint:
 
(void) - scrollPoint:
 
(void) - scrollRect:by:
 
(BOOL) - scrollRectToVisible:
 
(void) - setAlphaValue:
 
(void) - setAutoresizesSubviews:
 
(void) - setAutoresizingMask:
 
(void) - setBackgroundColor:
 
(void) - setBounds:
 
(void) - setBoundsOrigin:
 
(void) - setBoundsSize:
 
(void) - setCenter:
 
(void) - setClipsToBounds:
 
(void) - setFrame:
 
(void) - setFrameOrigin:
 
(void) - setFrameSize:
 
(void) - setHidden:
 
(void) - setHitTests:
 
(void) - setLayer:
 
(void) - setNeedsDisplay:
 
(void) - setNeedsDisplayInRect:
 
(void) - setNeedsLayout
 
(void) - setNextKeyView:
 
(void) - setPostsBoundsChangedNotifications:
 
(void) - setPostsFrameChangedNotifications:
 
(void) - setSubviews:
 
(void) - setTag:
 
(void) - setTheme:
 
(void) - setThemeClass:
 
(BOOL) - setThemeState:
 
(void) - setToolTip:
 
(void) - setValue:forThemeAttribute:
 
(void) - setValue:forThemeAttribute:inState:
 
(void) - setWantsLayer:
 
(CPArray- subviews
 
(CPView- superview
 
(CPInteger) - tag
 
(CPTheme- theme
 
(CPString- themeClass
 
(unsigned) - themeState
 
(CPString- toolTip
 
(void) - unlockFocus
 
(void) - unregisterDraggedTypes
 
(BOOL) - unsetThemeState:
 
(id) - valueForThemeAttribute:
 
(id) - valueForThemeAttribute:inState:
 
(void) - viewDidChangeTheme
 
(void) - viewDidEndLiveResize
 
(void) - viewDidHide
 
(void) - viewDidMoveToSuperview
 
(void) - viewDidMoveToWindow
 
(void) - viewDidUnhide
 
(void) - viewWillDraw
 
(void) - viewWillMoveToSuperview:
 
(void) - viewWillMoveToWindow:
 
(void) - viewWillStartLiveResize
 
(CPView- viewWithTag:
 
(CGRect) - visibleRect
 
(BOOL) - wantsLayer
 
(void) - willRemoveSubview:
 
(CPWindow- window
 
- Instance Methods inherited from CPResponder
(BOOL) - becomeFirstResponder
 
(void) - doCommandBySelector:
 
(void) - flagsChanged:
 
(void) - insertBackTab:
 
(void) - insertLineBreak:
 
(void) - insertNewline:
 
(void) - insertTab:
 
(void) - insertText:
 
(void) - interpretKeyEvents:
 
(void) - keyUp:
 
(CPMenu- menu
 
(void) - mouseEntered:
 
(void) - mouseExited:
 
(void) - mouseMoved:
 
(CPResponder- nextResponder
 
(void) - noResponderFor:
 
(BOOL) - resignFirstResponder
 
(void) - rightMouseUp:
 
(void) - scrollWheel:
 
(void) - setMenu:
 
(void) - setNextResponder:
 
(BOOL) - tryToPerform:with:
 
(CPUndoManager- undoManager
 
- Instance Methods inherited from CPObject
(void) - addObserver:forKeyPath:options:context:
 
(void) - applyChange:toKeyPath:
 
(id) - autorelease
 
(id) - awakeAfterUsingCoder:
 
(void) - bind:toObject:withKeyPath:options:
 
(Class) - classForCoder
 
(Class) - classForKeyedArchiver
 
(CPString- className
 
(id) - copy
 
(void) - dealloc
 
(CPString- description
 
(CPDictionary- dictionaryWithValuesForKeys:
 
(void) - didChange:valuesAtIndexes:forKey:
 
(void) - didChangeValueForKey:
 
(void) - didChangeValueForKey:withSetMutation:usingObjects:
 
(void) - doesNotRecognizeSelector:
 
(CPArray- exposedBindings
 
(id) - forwardingTargetForSelector:
 
(void) - forwardInvocation:
 
(unsigned) - hash
 
(BOOL) - implementsSelector:
 
(CPDictionary- infoForBinding:
 
(BOOL) - isEqual:
 
(BOOL) - isKindOfClass:
 
(BOOL) - isMemberOfClass:
 
(BOOL) - isProxy
 
(IMP) - methodForSelector:
 
(CPMethodSignature) - methodSignatureForSelector:
 
(id) - mutableArrayValueForKey:
 
(id) - mutableArrayValueForKeyPath:
 
(id) - mutableCopy
 
(id) - mutableSetValueForKey:
 
(id) - mutableSetValueForKeyPath:
 
(id) - performSelector:
 
(id) - performSelector:withObject:
 
(id) - performSelector:withObject:withObject:
 
(id) - performSelector:withObjects:
 
(void) - release
 
(void) - removeObserver:forKeyPath:
 
(id) - replacementObjectForArchiver:
 
(id) - replacementObjectForCoder:
 
(id) - replacementObjectForKeyedArchiver:
 
(BOOL) - respondsToSelector:
 
(id) - retain
 
(id) - self
 
(void) - setValue:forKey:
 
(void) - setValue:forKeyPath:
 
(void) - setValue:forUndefinedKey:
 
(void) - setValuesForKeysWithDictionary:
 
(CPString- UID
 
(void) - unbind:
 
(Class) - valueClassForBinding:
 
(id) - valueForKey:
 
(id) - valueForKeyPath:
 
(id) - valueForUndefinedKey:
 
(void) - willChange:valuesAtIndexes:forKey:
 
(void) - willChangeValueForKey:
 
(void) - willChangeValueForKey:withSetMutation:usingObjects:
 

Additional Inherited Members

- Class Methods inherited from CPView
(CPMenu+ defaultMenu
 
(CPString+ defaultThemeClass
 
(void) + initialize
 
(CPSet+ keyPathsForValuesAffectingBounds
 
(CPSet+ keyPathsForValuesAffectingFrame
 
(CPDictionary+ themeAttributes
 
- Class Methods inherited from CPObject
(BOOL) + accessInstanceVariablesDirectly
 
(id) + alloc
 
(id) + allocWithCoder:
 
(BOOL) + automaticallyNotifiesObserversForKey:
 
(Class) + class
 
(void) + exposeBinding:
 
(IMP) + instanceMethodForSelector:
 
(BOOL) + instancesRespondToSelector:
 
(BOOL) + isSubclassOfClass:
 
(CPSet+ keyPathsForValuesAffectingValueForKey:
 
(void) + load
 
(id) + new
 
(void) + setVersion:
 
(Class) + superclass
 
(int) + version
 
- Instance Variables inherited from CPObject
Class isa
 

Detailed Description

This class displays an array as a grid of objects, where each object is represented by a view. The view is controlled by creating a CPCollectionViewItem and specifying its view, then setting that item as the collection view prototype.

Delegate Methods

- (void)collectionViewDidChangeSelection:(CPCollectionView)collectionView; Called when the selection in the collection view has changed.

Parameters
collectionViewthe collection view who's selection changed

- (void)collectionView:(CPCollectionView)collectionView didDoubleClickOnItemAtIndex:(int)index; Called when the user double-clicks on an item in the collection view.

Parameters
collectionViewthe collection view that received the double-click
indexthe index of the item that received the double-click

- (CPData)collectionView:(CPCollectionView)collectionView dataForItemsAtIndexes:(CPIndexSet)indices forType:(CPString)aType; Invoked to obtain data for a set of indices.

Parameters
collectionViewthe collection view to obtain data for
indicesthe indices to return data for
aTypethe data type
Returns
a data object containing the index items

- (CPArray)collectionView:(CPCollectionView)collectionView dragTypesForItemsAtIndexes:(CPIndexSet)indices; Invoked to obtain the data types supported by the specified indices for placement on the pasteboard.

Parameters
collectionViewthe collection view the items reside in
indicesthe indices to obtain drag types
Returns
an array of drag types (CPString)

Definition at line 2 of file CPCollectionView.h.

Method Documentation

- (BOOL) acceptsFirstResponder
implementation

Returns YES by default.

Reimplemented from CPResponder.

Definition at line 219 of file CPCollectionView.j.

- (BOOL) allowsEmptySelection
implementation

Returns YES if the user can select no items, NO otherwise.

Definition at line 311 of file CPCollectionView.j.

- (BOOL) allowsMultipleSelection
implementation

Returns YES if the user can select multiple items, NO otherwise.

Definition at line 328 of file CPCollectionView.j.

- (void) awakeFromCib
implementation

Reimplemented from CPObject.

Provided by category CPCollectionView(CPCoding).

Definition at line 978 of file CPCollectionView.j.

- (CPArray) backgroundColors
implementation

Definition at line 622 of file CPCollectionView.j.

- (CPArray) content
implementation

Returns the collection view content array

Definition at line 254 of file CPCollectionView.j.

- (id) delegate
implementation

Returns the collection view's delegate

Definition at line 780 of file CPCollectionView.j.

- (void) deleteBackward: (id)  sender
implementation

Provided by category CPCollectionView(KeyboardInteraction).

Definition at line 924 of file CPCollectionView.j.

- (void) encodeWithCoder: (CPCoder aCoder
implementation

Archives the view to a coder.

Parameters
aCoderthe object into which the view's data will be archived.

Reimplemented from CPView.

Provided by category CPCollectionView(CPCoding).

Definition at line 1030 of file CPCollectionView.j.

- (CGRect) frameForItemAtIndex: (unsigned)  anIndex
implementation

Definition at line 812 of file CPCollectionView.j.

- (CGRect) frameForItemsAtIndexes: (CPIndexSet anIndexSet
implementation

Definition at line 817 of file CPCollectionView.j.

- (id) initWithCoder: (CPCoder aCoder
implementation

Initializes the view from an archive.

Parameters
aCoderthe coder from which to initialize
Returns
the initialized view

Reimplemented from CPView.

Provided by category CPCollectionView(CPCoding).

Definition at line 994 of file CPCollectionView.j.

- (id) initWithFrame: (CGRect)  aFrame
implementation

Initializes the receiver for usage with the specified bounding rectangle

Returns
the initialized view

Reimplemented from CPView.

Definition at line 96 of file CPCollectionView.j.

- (BOOL) isFirstResponder
implementation

Returns whether the receiver is currently the first responder.

Definition at line 227 of file CPCollectionView.j.

- (BOOL) isSelectable
implementation

Returns YES if the collection view is selectable, and NO otherwise.

Definition at line 294 of file CPCollectionView.j.

- (CPCollectionViewItem) itemAtIndex: (unsigned)  anIndex
implementation

Definition at line 807 of file CPCollectionView.j.

- (CPCollectionViewItem) itemPrototype
implementation

Returns the current item prototype

Definition at line 184 of file CPCollectionView.j.

- (CPArray) items
implementation

Returns the collection view items.

Definition at line 262 of file CPCollectionView.j.

- (void) keyDown: (CPEvent anEvent
implementation

Notifies the receiver that the user has pressed a key.

Parameters
anEventinformation about the key press

Reimplemented from CPResponder.

Provided by category CPCollectionView(KeyboardInteraction).

Definition at line 939 of file CPCollectionView.j.

- (CGSize) maxItemSize
implementation

Returns the current maximum item size.

Definition at line 598 of file CPCollectionView.j.

- (unsigned) maxNumberOfColumns
implementation

Returns the maximum number of columns

Definition at line 535 of file CPCollectionView.j.

- (unsigned) maxNumberOfRows
implementation

Returns the maximum number of rows.

Definition at line 513 of file CPCollectionView.j.

- (CPMenu) menuForEvent: (CPEvent theEvent
implementation

Reimplemented from CPView.

Definition at line 788 of file CPCollectionView.j.

- (CGSize) minItemSize
implementation

Returns the current minimum item size

Definition at line 576 of file CPCollectionView.j.

- (void) mouseDown: (CPEvent anEvent
implementation

Notifies the receiver that the user has clicked the mouse down in its area.

Parameters
anEventcontains information about the click

Reimplemented from CPView.

Definition at line 633 of file CPCollectionView.j.

- (void) mouseDragged: (CPEvent anEvent
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.

Parameters
anEventcontains information about the drag

Reimplemented from CPResponder.

Definition at line 683 of file CPCollectionView.j.

- (void) mouseUp: (CPEvent anEvent
implementation

Notifies the receiver that the user has released the left mouse button.

Parameters
anEventcontains information about the release

Reimplemented from CPResponder.

Definition at line 627 of file CPCollectionView.j.

- (void) moveDown: (id)  sender
implementation

Provided by category CPCollectionView(KeyboardInteraction).

Definition at line 896 of file CPCollectionView.j.

- (void) moveDownAndModifySelection: (id)  sender
implementation

Provided by category CPCollectionView(KeyboardInteraction).

Definition at line 901 of file CPCollectionView.j.

- (void) moveLeft: (id)  sender
implementation

Provided by category CPCollectionView(KeyboardInteraction).

Definition at line 868 of file CPCollectionView.j.

- (void) moveLeftAndModifySelection: (id)  sender
implementation

Provided by category CPCollectionView(KeyboardInteraction).

Definition at line 877 of file CPCollectionView.j.

- (void) moveRight: (id)  sender
implementation

Provided by category CPCollectionView(KeyboardInteraction).

Definition at line 886 of file CPCollectionView.j.

- (void) moveRightAndModifySelection: (id)  sender
implementation

Provided by category CPCollectionView(KeyboardInteraction).

Definition at line 891 of file CPCollectionView.j.

- (void) moveUp: (id)  sender
implementation

Provided by category CPCollectionView(KeyboardInteraction).

Definition at line 906 of file CPCollectionView.j.

- (void) moveUpAndModifySelection: (id)  sender
implementation

Provided by category CPCollectionView(KeyboardInteraction).

Definition at line 915 of file CPCollectionView.j.

- (CPCollectionViewItem) newItemForRepresentedObject: (id)  anObject
implementation

Returns a collection view item for anObject.

Parameters
anObjectthe object to be represented.

Definition at line 193 of file CPCollectionView.j.

- (unsigned) numberOfColumns
implementation

Returns the current number of columns

Definition at line 552 of file CPCollectionView.j.

- (unsigned) numberOfRows
implementation

Returns the current number of rows

Definition at line 543 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.

Parameters
aPasteboardthe pasteboard to put the items on
aTypethe format the pasteboard data

Definition at line 737 of file CPCollectionView.j.

- (CGRect) rectForItemAtIndex: (int)  anIndex
implementation

Provided by category CPCollectionView(Deprecated).

Definition at line 948 of file CPCollectionView.j.

- (CGRect) rectForItemsAtIndexes: (CPIndexSet anIndexSet
implementation

Provided by category CPCollectionView(Deprecated).

Definition at line 957 of file CPCollectionView.j.

- (void) reloadContent
implementation

Definition at line 374 of file CPCollectionView.j.

- (void) resizeSubviewsWithOldSize: (CGSize)  aSize
implementation

Initiates -superviewSizeChanged: messages to subviews.

Parameters
aSizethe size for the subviews

Reimplemented from CPView.

Definition at line 490 of file CPCollectionView.j.

- (CPIndexSet) selectionIndexes
implementation

Returns a set of the selected indices.

Definition at line 368 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.

Parameters
shouldAllowMultipleSelectionYES allows the user to select multiple items

Definition at line 303 of file CPCollectionView.j.

- (void) setAllowsMultipleSelection: (BOOL)  shouldAllowMultipleSelection
implementation

Sets whether the user can select multiple items.

Parameters
shouldAllowMultipleSelectionYES allows the user to select multiple items

Definition at line 320 of file CPCollectionView.j.

- (void) setBackgroundColors: (CPArray backgroundColors
implementation

Definition at line 603 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.

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.

Parameters
anArraya content array

Definition at line 244 of file CPCollectionView.j.

- (void) setDelegate: (id)  aDelegate
implementation

Sets the collection view's delegate

Parameters
aDelegatethe new delegate

Definition at line 772 of file CPCollectionView.j.

- (void) setItemPrototype: (CPCollectionViewItem anItem
implementation

Sets the item prototype to anItem

The item prototype should implement the CPCoding protocol because the item is copied by archiving and unarchiving the prototypal view.

Example:

   MyCustomView : CPCollectionViewItem
  {
      CPArray   items;
  }
  • (id)initWithFrame:aFrame { self = [super initWithFrame:aFrame]; if (self) { items = []; } return self; }


  

This will allow the collection view to create multiple 'clean' copies of the item prototype which will maintain the original values for item and all of the properties archived by the super class.

Parameters
anItemthe new item prototype

Definition at line 171 of file CPCollectionView.j.

- (void) setMaxItemSize: (CGSize)  aSize
implementation

Sets the maximum item size.

Parameters
aSizethe new maximum item size

Definition at line 585 of file CPCollectionView.j.

- (void) setMaxNumberOfColumns: (unsigned)  aMaxNumberOfColumns
implementation

Sets the maximum number of columns.

Parameters
aMaxNumberOfColumnsthe new maximum number of columns

Definition at line 522 of file CPCollectionView.j.

- (void) setMaxNumberOfRows: (unsigned)  aMaxNumberOfRows
implementation

Sets the maximum number of rows.

Parameters
aMaxNumberOfRowsthe new maximum number of rows

Definition at line 500 of file CPCollectionView.j.

- (void) setMinItemSize: (CGSize)  aSize
implementation

Sets the minimum size for an item

Parameters
aSizethe new minimum item size

Definition at line 561 of file CPCollectionView.j.

- (void) setSelectable: (BOOL)  isSelectable
implementation

Sets whether the user is allowed to select items

Parameters
isSelectableYES allows the user to select items.

Definition at line 272 of file CPCollectionView.j.

- (void) setSelectionIndexes: (CPIndexSet anIndexSet
implementation

Sets the selected items based on the provided indices.

Parameters
anIndexSetthe set of items to be selected

Definition at line 337 of file CPCollectionView.j.

- (void) setVerticalMargin: (float)  aVerticalMargin
implementation

Sets the collection view's vertical spacing between elements.

Parameters
aVerticalMarginthe number of pixels to place between elements

Definition at line 749 of file CPCollectionView.j.

- (void) tile
implementation

Definition at line 412 of file CPCollectionView.j.

- (float) verticalMargin
implementation

Gets the collection view's current vertical spacing between elements.

Definition at line 763 of file CPCollectionView.j.


The documentation for this class was generated from the following files: