Skip to content
Browse files

prototypes for functions to implement

  • Loading branch information...
1 parent f5e82af commit 10e33fffbb044f447b345677df12d263ed7fbccc @echoz committed Sep 9, 2011
Showing with 29 additions and 0 deletions.
  1. +28 −0 JOGridView.h
  2. +1 −0 JOGridView.m
View
28 JOGridView.h
@@ -45,6 +45,11 @@
NSUInteger __lastWarpedInRow;
CGFloat __lastWarpedInRowHeight;
+ // configuration
+
+ BOOL allowsSelection;
+
+
// ivar properties
CGFloat __previousOffset;
@@ -60,7 +65,30 @@
@property (nonatomic, assign) id <JOGridViewDelegate> delegate;
@property (readwrite) BOOL debug;
+// cell accessors
+@property (readonly) NSArray *visibleRows;
+-(NSIndexPath *)indexPathForCell:(JOGridViewCell *)cell;
+-(NSIndexPath *)indexPathsForVisibleCells;
+-(JOGridViewCell *)cellForRowAtIndexPath:(NSIndexPath *)indexPath;
+
+// selections
+@property (readwrite) BOOL allowsSelecton;
+-(NSIndexPath *)indexPathForSelectedCell;
+-(void)selectCellAtIndexPath:(NSIndexPath *)indexPath animated:(BOOL)animated;
+-(void)deselectCellAtIndexPath:(NSIndexPath *)indexPath animated:(BOOL)animated;
+
+// scrolling
+-(void)scrollToRow:(NSUInteger)row animated:(BOOL)animated;
+-(void)scrollToIndexPath:(NSIndexPath *)indexPath animated:(BOOL)animated;
+
+// gridview properties
+-(NSUInteger)numberOfRows;
+-(NSUInteger)numberOfColumnsInRow:(NSUInteger)row;
+
+// reload methods
-(JOGridViewCell *)dequeueReusableCellWithIdenitifer:(NSString *)identifier;
-(void)reloadData;
+-(void)reloadCellAtIndexPath:(NSIndexPath *)indexPath;
+-(void)reloadRow:(NSUInteger)row;
@end
View
1 JOGridView.m
@@ -30,6 +30,7 @@ -(void)delegateWillDisplayCell:(JOGridViewCell *)cell atIndexPath:(NSIndexPath *
@end
@implementation JOGridView
+@synthesize visibleRows = __visibleRows, allowsSelecton;
@synthesize datasource = gridViewDataSource, delegate = gridViewDelegate;
@synthesize debug;

0 comments on commit 10e33ff

Please sign in to comment.
Something went wrong with that request. Please try again.