aneuryzm
aneuryzm

Reputation: 64854

Understanding methods syntax in Objective-C and Objective-J

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

Answers (1)

BoltClock
BoltClock

Reputation: 724292

That identifies the CPCollectionView which your implementing data source corresponds to. This is useful in case your view or window has multiple CPCollectionViews, whose data sources are the same object, so it knows which view to provide which data to.

Upvotes: 1

Related Questions