Permalink
Browse files

Move protocol declaration to top to fix compilation issues

  • Loading branch information...
1 parent 6d128a5 commit 09e1b3b4eb105fc162d81cd7865347d6a15273e2 @danielctull committed Mar 7, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 DTSnapGridView/DTSnapGridView.h
@@ -10,14 +10,14 @@
#import "DTGridView.h"
#import "DTSnapGridViewCell.h"
-@protocol DTSnapGridViewDelegate;
+@class DTSnapGridView;
+
+@protocol DTSnapGridViewDelegate <DTGridViewDelegate>
+- (void)snapGridView:(DTSnapGridView *)snapGridView didHighlightIndex:(NSInteger)index;
+@end
@interface DTSnapGridView : DTGridView {
DTSnapGridViewCell *selectedCell;
}
@property (nonatomic, assign) IBOutlet id<DTSnapGridViewDelegate> delegate;
@end
-
-@protocol DTSnapGridViewDelegate <DTGridViewDelegate>
-- (void)snapGridView:(DTSnapGridView *)snapGridView didHighlightIndex:(NSInteger)index;
-@end

0 comments on commit 09e1b3b

Please sign in to comment.