Last change
on this file was 442, checked in by Nicholas Riley, 16 years ago |
Move index-to-range conversion into a class method for launch methods that do not use a trigger
|
File size:
573 bytes
|
Rev | Line | |
---|
[183] | 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;
|
---|
[388] | 14 | NSRange range;
|
---|
| 15 | NSView<NSTextInput> *target;
|
---|
[183] | 16 | }
|
---|
| 17 |
|
---|
[388] | 18 | + (void)setTriggerForEvent:(NSEvent *)anEvent onTarget:(NSView<NSTextInput> *)aTarget;
|
---|
| 19 | + (BOOL)cancel;
|
---|
[183] | 20 |
|
---|
[442] | 21 | + (NSRange)rangeForEvent:(NSEvent *)anEvent onTarget:(NSView <NSTextInput> *)aTarget;
|
---|
| 22 |
|
---|
[388] | 23 | - (void)timerFired:(NSTimer *)aTimer; // overridden by subclasses
|
---|
[183] | 24 |
|
---|
| 25 | @end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.