ALWAYS_SEARCH_USER_PATHS = YES;
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
COPY_PHASE_STRIP = NO;
- DEAD_CODE_STRIPPING = NO;
+ DEAD_CODE_STRIPPING = YES;
DSTROOT = /tmp/ZXingWidget.dst;
+ EXPORTED_SYMBOLS_FILE = exportList;
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_FIX_AND_CONTINUE = YES;
GCC_MODEL_TUNING = G5;
INSTALL_PATH = /usr/local/lib;
IPHONEOS_DEPLOYMENT_TARGET = 3.1.2;
LD_GENERATE_MAP_FILE = YES;
- LD_OPENMP_FLAGS = "-fopenmp -M";
+ LD_OPENMP_FLAGS = "-fopenmp";
MACH_O_TYPE = staticlib;
- OTHER_LDFLAGS = "-ObjC";
- PRESERVE_DEAD_CODE_INITS_AND_TERMS = YES;
+ OTHER_LDFLAGS = (
+ "-ObjC",
+ "-M",
+ );
+ PRESERVE_DEAD_CODE_INITS_AND_TERMS = NO;
PRODUCT_NAME = ZXingWidget;
SDKROOT = iphoneos3.1.3;
SEPARATE_STRIP = NO;
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
+ [overlayView setPoints:nil];
wasCancelled = false;
[NSTimer scheduledTimerWithTimeInterval: FIRST_TAKE_DELAY
target: self
// [self presentResultForString:twoDResult.text];
NSLog(@"decoded image!!");
[self presentResultPoints:[twoDResult points] forImage:image usingSubset:subset];
- if (delegate != nil) {
- [delegate scanResult:[twoDResult text]];
- }
+ // now, in a selector, call the delegate to give this overlay time to show the points
+ [self performSelectorOnMainThread:@selector(alertDelegate:) withObject:[[twoDResult text] copy] waitUntilDone:false];
decoder.delegate = nil;
[decoder release];
-
- // save the scan to the shared database
- // [[Database sharedDatabase] addScanWithText:twoDResult.text];
- // need to call delegate....`
- // [self performResultAction:self];
+}
+
+- (void)alertDelegate:(id)text {
+ if (delegate != nil) {
+ [delegate scanResult:text];
+ }
}
- (void)decoder:(Decoder *)decoder failedToDecodeImage:(UIImage *)image usingSubset:(UIImage *)subset reason:(NSString *)reason {