parent
558c737226
commit
d9348efb1e
|
@ -62,11 +62,6 @@ static const NSTimeInterval kTimeoutInterval = 60.0;
|
||||||
LTLoadLanguageModel();
|
LTLoadLanguageModel();
|
||||||
|
|
||||||
[self checkForUpdate];
|
[self checkForUpdate];
|
||||||
|
|
||||||
if (0) {
|
|
||||||
PreferencesWindowController *controller = [[PreferencesWindowController alloc] initWithWindowNibName:@"preferences"];
|
|
||||||
[[controller window] orderFront:nil];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)checkForUpdate
|
- (void)checkForUpdate
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
@interface VTCandidateController : NSWindowController
|
@interface VTCandidateController : NSWindowController
|
||||||
{
|
{
|
||||||
@protected
|
@protected
|
||||||
__weak id<VTCandidateControllerDelegate> _delegate;
|
id<VTCandidateControllerDelegate> _delegate;
|
||||||
NSArray *_keyLabels;
|
NSArray *_keyLabels;
|
||||||
NSFont *_keyLabelFont;
|
NSFont *_keyLabelFont;
|
||||||
NSFont *_candidateFont;
|
NSFont *_candidateFont;
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
NSUInteger _highlightedIndex;
|
NSUInteger _highlightedIndex;
|
||||||
NSUInteger _trackingHighlightedIndex;
|
NSUInteger _trackingHighlightedIndex;
|
||||||
SEL _action;
|
SEL _action;
|
||||||
__weak id _target;
|
id _target;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setKeyLabels:(NSArray *)labels displayedCandidates:(NSArray *)candidates;
|
- (void)setKeyLabels:(NSArray *)labels displayedCandidates:(NSArray *)candidates;
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
<string>McBopomofo.icns</string>
|
<string>McBopomofo.icns</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
<string>org.openvanilla.McBopomofo.${PRODUCT_NAME:rfc1034identifier}</string>
|
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
||||||
<key>CFBundleInfoDictionaryVersion</key>
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
<string>6.0</string>
|
<string>6.0</string>
|
||||||
<key>CFBundleName</key>
|
<key>CFBundleName</key>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
<string>McBopomofo.icns</string>
|
<string>McBopomofo.icns</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
<string>org.openvanilla.inputmethod.McBopomofo</string>
|
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
||||||
<key>CFBundleInfoDictionaryVersion</key>
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
<string>6.0</string>
|
<string>6.0</string>
|
||||||
<key>CFBundleName</key>
|
<key>CFBundleName</key>
|
||||||
|
|
|
@ -82,7 +82,7 @@ int main(int argc, char *argv[])
|
||||||
NSLog(@"Enabling input source %@ at %@.", bundleID, [bundleURL absoluteString]);
|
NSLog(@"Enabling input source %@ at %@.", bundleID, [bundleURL absoluteString]);
|
||||||
BOOL status = [OVInputSourceHelper enableInputSource:inputSource];
|
BOOL status = [OVInputSourceHelper enableInputSource:inputSource];
|
||||||
|
|
||||||
if (!status != noErr) {
|
if (!status) {
|
||||||
NSLog(@"Fatal error: Cannot enable input source %@.", bundleID);
|
NSLog(@"Fatal error: Cannot enable input source %@.", bundleID);
|
||||||
[pool drain];
|
[pool drain];
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue