From d1977f148e3f9b4aa9dd72f587b5dc86fd538c41 Mon Sep 17 00:00:00 2001 From: Nicholas Small Date: Thu, 29 Jan 2009 11:30:53 -0800 Subject: [PATCH] Added numberOfRows and numberOfColumns to CPCollectionView. Reviewed by me. --- AppKit/CPCollectionView.j | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/AppKit/CPCollectionView.j b/AppKit/CPCollectionView.j index 8d265f18b..5ed2673df 100644 --- a/AppKit/CPCollectionView.j +++ b/AppKit/CPCollectionView.j @@ -436,6 +436,23 @@ return _maxNumberOfColumns; } +/*! + Returns the current number of rows +*/ +- (unsigned)numberOfRows +{ + return _numberOfRows; +} + +/*! + Returns the current number of columns +*/ + +- (unsigned)numberOfColumns +{ + return _numberOfColumns; +} + /*! Sets the minimum size for an item @param aSize the new minimum item size