Skip to content
This repository
Browse code

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...
commit 0b88c6fe7223c0f17728756c62eedabd83833de8 1 parent 37c92c0
Daniel Tull authored February 12, 2010
5  DTGridView/DTGridView.h
@@ -110,6 +110,11 @@ struct DTOutset {
110 110
  @discussion The delegate must adopt the DTGridViewDelegate protocol. The delegate is not retained.
111 111
 */
112 112
 @property (nonatomic, assign) IBOutlet id<DTGridViewDelegate> delegate;
  113
+/*!
  114
+ @abstract The object that acts as the delegate of the receiving grid view.
  115
+ @deprecated This property is depricated and you should now use the standard delegate property.
  116
+ */
  117
+@property (nonatomic, assign) IBOutlet id<DTGridViewDelegate> gridDelegate;
113 118
 
114 119
 /*!
115 120
  @abstract The offset for each cell with respect to the cells above and to the right.
7  DTGridView/DTGridView.m
@@ -39,6 +39,13 @@ @implementation DTGridView
39 39
 @dynamic delegate;
40 40
 @synthesize dataSource, gridCells, numberOfRows, cellOffset, outset;
41 41
 
  42
+- (void)setGridDelegate:(id <DTGridViewDelegate>)aDelegate {
  43
+	self.delegate = aDelegate;
  44
+}
  45
+- (id <DTGridViewDelegate>)gridDelegate {
  46
+	return self.delegate;
  47
+}
  48
+
42 49
 NSInteger intSort(id info1, id info2, void *context) {
43 50
 	
44 51
 	DTGridViewCellInfo *i1 = (DTGridViewCellInfo *)info1;

0 notes on commit 0b88c6f

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