]> Dogcows Code - chaz/thecheat/blob - TrackerScroller.m
The Cheat 1.2
[chaz/thecheat] / TrackerScroller.m
1 //
2 // TrackerScroller.m
3 // The Cheat
4 //
5 // Created by Chaz McGarvey on 12/28/04.
6 // Copyright 2004 Chaz McGarvey. All rights reserved.
7 //
8
9 #import "TrackerScroller.h"
10
11
12 @implementation TrackerScroller
13
14
15 - (id)delegate
16 {
17 return _delegate;
18 }
19
20 - (void)setDelegate:(id)delegate
21 {
22 _delegate = delegate;
23 }
24
25
26 - (void)mouseDown:(NSEvent *)theEvent
27 {
28 if ( [_delegate respondsToSelector:@selector(scrollerDidStartScrolling:)] ) {
29 [_delegate scrollerDidStartScrolling:self];
30 }
31 [super mouseDown:theEvent];
32 if ( [_delegate respondsToSelector:@selector(scrollerDidStopScrolling:)] ) {
33 [_delegate scrollerDidStopScrolling:self];
34 }
35 }
36
37
38 @end
This page took 0.029414 seconds and 4 git commands to generate.