Removed old commented-out code.
[CleverRabbit.git] / Chomp / CHOMPTrampoline.m
blob0824739064721b49ca091db67b4aaf15b77bde9d
1 //
2 //  CHOMPTrampoline.m
3 //  Chomp
4 //
5 //  Created by Michael Ash on 12/15/04.
6 //
8 #import "CHOMPTrampoline.h"
11 @implementation CHOMPTrampoline
13 + trampolineWithSelector:(SEL)sel target:obj
15         return [[[self alloc] initWithSelector:sel target:obj] autorelease];
18 - initWithSelector:(SEL)sel target:obj
20         selector = sel;
21         target = obj;
22         return self;
25 - (void)forwardInvocation:(NSInvocation *)invocation
27         [self performSelector:selector withObject:invocation];
30 - (NSMethodSignature *)methodSignatureForSelector:(SEL)sel
32         NSLog(@"ERROR: %@ must provide an implementation for %@", [self class], NSStringFromSelector(_cmd));
33         return nil;
36 @end