Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (24 sloc) 447 Bytes
//
// ClickableProgressIndicator.m
// Vienna
//
// Created by Evan Schoenberg on 6/2/07.
//
#import "ClickableProgressIndicator.h"
@implementation ClickableProgressIndicator
- (void)setTarget:(id)inTarget
{
target = inTarget;
}
- (void)setAction:(SEL)inAction
{
action = inAction;
}
- (void)mouseDown:(NSEvent *)inEvent
{
if (target && action)
[target performSelector:action withObject:self];
else
[super mouseDown:inEvent];
}
@end