Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (25 sloc) 0.867 kb
//
// AvroKeyboard
//
// Created by Rifat Nabi on 6/21/12.
// Copyright (c) 2012 OmicronLab. All rights reserved.
//
#import "Candidates.h"
static Candidates *_sharedInstance = nil;
@implementation Candidates
+ (void)allocateSharedInstanceWithServer:(IMKServer *)server {
if (_sharedInstance == nil) {
_sharedInstance = [[self alloc] initWithServer:server panelType:kIMKSingleColumnScrollingCandidatePanel];
[_sharedInstance setAttributes:[NSDictionary
dictionaryWithObject:[NSNumber numberWithBool:YES]
forKey:IMKCandidatesSendServerKeyEventFirst]];
[_sharedInstance setDismissesAutomatically:NO];
}
}
+ (void)deallocateSharedInstance {
[_sharedInstance release];
}
+ (Candidates *)sharedInstance; {
return _sharedInstance;
}
@end
Jump to Line
Something went wrong with that request. Please try again.