source: trunk/ICeCoffEE/ICeCoffEE/ICeCoffEETrigger.h

Last change on this file was 442, checked in by Nicholas Riley, 14 years ago

Move index-to-range conversion into a class method for launch methods that do not use a trigger

File size: 573 bytes
Line 
1//
2// ICeCoffEETrigger.h
3// ICeCoffEE APE
4//
5// Created by Nicholas Riley on 5/14/05.
6// Copyright 2005 Nicholas Riley. All rights reserved.
7//
8
9#import <Cocoa/Cocoa.h>
10
11@interface ICeCoffEETrigger : NSObject {
12 NSEvent *event;
13 NSTimer *timer;
14 NSRange range;
15 NSView<NSTextInput> *target;
16}
17
18+ (void)setTriggerForEvent:(NSEvent *)anEvent onTarget:(NSView<NSTextInput> *)aTarget;
19+ (BOOL)cancel;
20
21+ (NSRange)rangeForEvent:(NSEvent *)anEvent onTarget:(NSView <NSTextInput> *)aTarget;
22
23- (void)timerFired:(NSTimer *)aTimer; // overridden by subclasses
24
25@end
Note: See TracBrowser for help on using the repository browser.