]> Dogcows Code - chaz/thecheat/blobdiff - TrackerScroller.m
The Cheat 1.2
[chaz/thecheat] / TrackerScroller.m
diff --git a/TrackerScroller.m b/TrackerScroller.m
new file mode 100644 (file)
index 0000000..3986402
--- /dev/null
@@ -0,0 +1,38 @@
+//
+//  TrackerScroller.m
+//  The Cheat
+//
+//  Created by Chaz McGarvey on 12/28/04.
+//  Copyright 2004 Chaz McGarvey. All rights reserved.
+//
+
+#import "TrackerScroller.h"
+
+
+@implementation TrackerScroller
+
+
+- (id)delegate
+{
+       return _delegate;
+}
+
+- (void)setDelegate:(id)delegate
+{
+       _delegate = delegate;
+}
+
+
+- (void)mouseDown:(NSEvent *)theEvent
+{
+       if ( [_delegate respondsToSelector:@selector(scrollerDidStartScrolling:)] ) {
+               [_delegate scrollerDidStartScrolling:self];
+       }
+       [super mouseDown:theEvent];
+       if ( [_delegate respondsToSelector:@selector(scrollerDidStopScrolling:)] ) {
+               [_delegate scrollerDidStopScrolling:self];
+       }
+}
+
+
+@end
This page took 0.019578 seconds and 4 git commands to generate.