]> Dogcows Code - chaz/thecheat/blob - TrackerScroller.m
update contact information and project URL
[chaz/thecheat] / TrackerScroller.m
1
2 /*
3 * The Cheat - The legendary universal game trainer for Mac OS X.
4 * http://www.brokenzipper.com/trac/wiki/TheCheat
5 *
6 * Copyright (c) 2003-2011, Charles McGarvey et al.
7 *
8 * Distributable under the terms and conditions of the 2-clause BSD
9 * license; see the file COPYING for the legal text of the license.
10 */
11
12
13 #import "TrackerScroller.h"
14
15
16 @implementation TrackerScroller
17
18
19 - (id)delegate
20 {
21 return _delegate;
22 }
23
24 - (void)setDelegate:(id)delegate
25 {
26 _delegate = delegate;
27 }
28
29
30 - (void)mouseDown:(NSEvent *)theEvent
31 {
32 if ( [_delegate respondsToSelector:@selector(scrollerDidStartScrolling:)] ) {
33 [_delegate scrollerDidStartScrolling:self];
34 }
35 [super mouseDown:theEvent];
36 if ( [_delegate respondsToSelector:@selector(scrollerDidStopScrolling:)] ) {
37 [_delegate scrollerDidStopScrolling:self];
38 }
39 }
40
41
42 @end
This page took 0.031245 seconds and 4 git commands to generate.