Permalink
Browse files

Added the gridDelegate property back and linked it to the delegate pr…

…operty. Hopefully to transition projects so that this property can be removed in the future.
  • Loading branch information...
danielctull committed Feb 12, 2010
1 parent 37c92c0 commit 0b88c6fe7223c0f17728756c62eedabd83833de8
Showing with 12 additions and 0 deletions.
  1. +5 −0 DTGridView/DTGridView.h
  2. +7 −0 DTGridView/DTGridView.m
View
@@ -110,6 +110,11 @@ struct DTOutset {
@discussion The delegate must adopt the DTGridViewDelegate protocol. The delegate is not retained.
*/
@property (nonatomic, assign) IBOutlet id<DTGridViewDelegate> delegate;
+/*!
+ @abstract The object that acts as the delegate of the receiving grid view.
+ @deprecated This property is depricated and you should now use the standard delegate property.
+ */
+@property (nonatomic, assign) IBOutlet id<DTGridViewDelegate> gridDelegate;
/*!
@abstract The offset for each cell with respect to the cells above and to the right.
View
@@ -39,6 +39,13 @@ @implementation DTGridView
@dynamic delegate;
@synthesize dataSource, gridCells, numberOfRows, cellOffset, outset;
+- (void)setGridDelegate:(id <DTGridViewDelegate>)aDelegate {
+ self.delegate = aDelegate;
+}
+- (id <DTGridViewDelegate>)gridDelegate {
+ return self.delegate;
+}
+
NSInteger intSort(id info1, id info2, void *context) {
DTGridViewCellInfo *i1 = (DTGridViewCellInfo *)info1;

0 comments on commit 0b88c6f

Please sign in to comment.