Permalink
Browse files

tune options for hanja release

  • Loading branch information...
youknowone committed Dec 8, 2014
1 parent 626a4c6 commit d8a8ac86c16b9da035d0dad14a5eb608e10ad199
Showing with 15 additions and 10 deletions.
  1. +7 −2 Gureum.xcodeproj/project.pbxproj
  2. +7 −7 OSX/HangulComposer.m
  3. +1 −1 OSX/tools/ready.sh
@@ -869,7 +869,10 @@
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = OSX/Prefix.pch;
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
GCC_PREPROCESSOR_DEFINITIONS = (
"$(inherited)",
"COCOAPODS=1",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
@@ -895,16 +898,18 @@
buildSettings = {
CODE_SIGN_IDENTITY = "Developer ID Application";
COMBINE_HIDPI_IMAGES = YES;
COPY_PHASE_STRIP = YES;
COPY_PHASE_STRIP = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(PROJECT_DIR)",
"\"$(PROJECT_DIR)/libhangul-objc/build/$(CONFIGURATION)\"",
"\"$(PROJECT_DIR)/OSX/ShortcutRecorder/build/$(CONFIGURATION)\"",
);
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_OPTIMIZATION_LEVEL = s;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = OSX/Prefix.pch;
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
View
@@ -254,22 +254,22 @@ - (void)updateHanjaCandidates {
}
- (void)updateFromController:(CIMInputController *)controller {
dlog(DEBUG_HANJACOMPOSER, @"HanjaComposer updateFromClientSelectedRange:");
dlog(DEBUG_HANJACOMPOSER, @"HanjaComposer updateFromController:");
NSRange markedRange = [controller.client markedRange];
NSRange selectedRange = [controller.client selectedRange];
dlog(DEBUG_HANJACOMPOSER, @"HanjaComposer -updateFromClientSelectedRange: marked: %@ selected: %@", NSStringFromRange(markedRange), NSStringFromRange(selectedRange));
dlog(DEBUG_HANJACOMPOSER, @"HanjaComposer -updateFromController: marked: %@ selected: %@", NSStringFromRange(markedRange), NSStringFromRange(selectedRange));
if ((markedRange.length == 0 || markedRange.length == NSNotFound) && selectedRange.length > 0) {
NSString *selectedString = [[controller.client attributedSubstringFromRange:selectedRange] string];
dlog(DEBUG_HANJACOMPOSER, @"HanjaComposer -updateFromClientSelectedRange: selected string: %@", selectedString);
dlog(DEBUG_HANJACOMPOSER, @"HanjaComposer -updateFromController: selected string: %@", selectedString);
[controller.client setMarkedText:selectedString selectionRange:selectedRange replacementRange:selectedRange];
dlog(DEBUG_HANJACOMPOSER, @"HanjaComposer -updateFromClientSelectedRange: try marking: %@ / selected: %@", NSStringFromRange([controller.client markedRange]), NSStringFromRange([controller.client selectedRange]));
dlog(DEBUG_HANJACOMPOSER, @"HanjaComposer -updateFromController: try marking: %@ / selected: %@", NSStringFromRange([controller.client markedRange]), NSStringFromRange([controller.client selectedRange]));
self->bufferedString.string = selectedString;
dlog(DEBUG_HANJACOMPOSER, @"HanjaComposer -updateFromClientSelectedRange: so buffer is: %@", self->bufferedString);
dlog(DEBUG_HANJACOMPOSER, @"HanjaComposer -updateFromController: so buffer is: %@", self->bufferedString);
self.mode = NO;
}
dlog(DEBUG_HANJACOMPOSER, @"HanjaComposer -updateFromClientSelectedRange super");
dlog(DEBUG_HANJACOMPOSER, @"HanjaComposer -updateFromController super");
[self updateHanjaCandidates];
dlog(DEBUG_HANJACOMPOSER, @"HanjaComposer -updateFromClientSelectedRange done");
dlog(DEBUG_HANJACOMPOSER, @"HanjaComposer -updateFromController done");
}
- (BOOL)hasCandidates {
View
@@ -7,5 +7,5 @@ appname='Gureum.app'
pkgname=`git tag | tail -n 1`
if [ ! $CONFIGURATION ]; then
CONFIGURATION='Release'
CONFIGURATION='Debug'
fi

0 comments on commit d8a8ac8

Please sign in to comment.