Reputation: 64854
I've a simple question about objective-c / objective-j syntax.
This is a method dataForItemsAtIndexes and it gets as parameters a CPIndextSet and CPString. It should return a CPData object. However I don't understand what's (CPCollectionView)aCollectionView.
- (CPData)collectionView:(CPCollectionView)aCollectionView
dataForItemsAtIndexes:(CPIndexSet)indices
forType:(CPString)aType
Thanks
Upvotes: 0
Views: 256
Reputation: 724292
That identifies the CPCollectionView
which your implementing data source corresponds to. This is useful in case your view or window has multiple CPCollectionView
s, whose data sources are the same object, so it knows which view to provide which data to.
Upvotes: 1