minor revision to reflect xcode changes (#112)

__weak
if (0)
This commit is contained in:
Mengjuei Hsieh 2016-10-24 23:08:43 -07:00 committed by GitHub
parent 558c737226
commit d9348efb1e
6 changed files with 5 additions and 10 deletions

View File

@ -62,11 +62,6 @@ static const NSTimeInterval kTimeoutInterval = 60.0;
LTLoadLanguageModel();
[self checkForUpdate];
if (0) {
PreferencesWindowController *controller = [[PreferencesWindowController alloc] initWithWindowNibName:@"preferences"];
[[controller window] orderFront:nil];
}
}
- (void)checkForUpdate

View File

@ -38,7 +38,7 @@
@interface VTCandidateController : NSWindowController
{
@protected
__weak id<VTCandidateControllerDelegate> _delegate;
id<VTCandidateControllerDelegate> _delegate;
NSArray *_keyLabels;
NSFont *_keyLabelFont;
NSFont *_candidateFont;

View File

@ -41,7 +41,7 @@
NSUInteger _highlightedIndex;
NSUInteger _trackingHighlightedIndex;
SEL _action;
__weak id _target;
id _target;
}
- (void)setKeyLabels:(NSArray *)labels displayedCandidates:(NSArray *)candidates;

View File

@ -9,7 +9,7 @@
<key>CFBundleIconFile</key>
<string>McBopomofo.icns</string>
<key>CFBundleIdentifier</key>
<string>org.openvanilla.McBopomofo.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View File

@ -9,7 +9,7 @@
<key>CFBundleIconFile</key>
<string>McBopomofo.icns</string>
<key>CFBundleIdentifier</key>
<string>org.openvanilla.inputmethod.McBopomofo</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View File

@ -82,7 +82,7 @@ int main(int argc, char *argv[])
NSLog(@"Enabling input source %@ at %@.", bundleID, [bundleURL absoluteString]);
BOOL status = [OVInputSourceHelper enableInputSource:inputSource];
if (!status != noErr) {
if (!status) {
NSLog(@"Fatal error: Cannot enable input source %@.", bundleID);
[pool drain];
return -1;