forked from torifat/iAvro
-
Notifications
You must be signed in to change notification settings - Fork 3
/
AvroKeyboardController.h
31 lines (25 loc) · 1.07 KB
/
AvroKeyboardController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//
// AvroKeyboard
//
// Created by Rifat Nabi on 6/21/12.
// Copyright (c) 2012 OmicronLab. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <InputMethodKit/InputMethodKit.h>
@interface AvroKeyboardController : IMKInputController {
@private
id _currentClient; // the current active client.
int _prevSelected;
NSMutableString* _composedBuffer; // _composedBuffer contains text that the input method has converted
NSMutableArray* _currentCandidates;
NSString* _prefix; // Converted Prefix
NSString* _term; // Original Non-Converted Term
NSString* _suffix; // Converted Suffix
}
@property (nonatomic, retain) NSString* prefix;
@property (nonatomic, retain) NSString* term;
@property (nonatomic, retain) NSString* suffix;
//These are simple methods for managing our composition and original buffers
//They are all simple wrappers around basic NSString methods.
- (void)commitText:(NSString*)string;
@end