Remove a bunch of NSLog output, set a DEBUG preprocessor macro for the debug build.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 26 Sep 2009 16:59:31 +0000 (12:59 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 26 Sep 2009 16:59:31 +0000 (12:59 -0400)
ApertureToAnselExportPlugin/ApertureToAnselExportPlugin.m
ApertureToAnselExportPlugin/ApertureToAnselExportPlugin.xcodeproj/project.pbxproj

index a480f3a..7212b22 100644 (file)
@@ -102,29 +102,23 @@ NSString * const TURAnselServerPasswordKey = @"password";
     NSLog(@"ApertureToAnselExportPlugin: dealloc called");
     [_anselServers release];
     _anselServers = nil;
-    NSLog(@"_anselServers released");
     
     [_anselController setDelegate:nil];
     [_anselController release];
     _anselController = nil;
-    NSLog(@"_anselController released");
     
     [_browserData release];
     _browserData = nil;
-    NSLog(@"_browserData released");
     
        // Release the top-level objects from the nib.
        [_topLevelNibObjects makeObjectsPerformSelector:@selector(release)];
        [_topLevelNibObjects release];
-    NSLog(@"topLevelNibs released");
     
        [_progressLock release];
     _progressLock = nil;
-    NSLog(@"_progressLock released");
     
        [_exportManager release];
        _exportManager = nil;
-    NSLog(@"exportManager released");
     
     [super dealloc];
 }
@@ -464,6 +458,9 @@ NSString * const TURAnselServerPasswordKey = @"password";
     // Obtain and properly size the image for screen
     NSImage *theImage = [[NSImage alloc] initWithContentsOfURL: [_currentGallery galleryKeyImageURL]];
     NSSize imageSize;
+    
+    // [NSImage bestRepresentationForDevice] is deprecated in 10.6, use bestRepresentationForRect:context:hints: instead if
+    // we are compiling for a TARGET of 10.6
 #if MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_5
     imageSize.width = [[theImage bestRepresentationForRect:[defaultImageView bounds] context:nil hints:nil] pixelsWide];
     imageSize.height = [[theImage bestRepresentationForRect:[defaultImageView bounds] context:nil hints:nil] pixelsHigh];
@@ -846,13 +843,11 @@ objectValueForTableColumn:(NSTableColumn *)aTableColumn
 #pragma mark IKImageBrowserView Datasource methods
 - (NSUInteger)numberOfItemsInImageBrowser:(IKImageBrowserView *) aBrowser
 {      
-    NSLog(@"numberOfItemsInImageBrowser: %u", [_browserData count]);
        return [_browserData count];
 }
 
 - (id)imageBrowser:(IKImageBrowserView *) aBrowser itemAtIndex:(NSUInteger)index
 {
-    NSLog(@"imageBrowser:itemAtIndex: %@", [_browserData objectAtIndex:index]);
        return [_browserData objectAtIndex:index];
 }
 @end
index 36749f4..74cff18 100644 (file)
                                ARCHS = "$(ARCHS_STANDARD_32_BIT)";
                                FRAMEWORK_SEARCH_PATHS = "/Library/Frameworks//**";
                                GCC_ENABLE_OBJC_EXCEPTIONS = YES;
+                               GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
                                GCC_WARN_ABOUT_RETURN_TYPE = YES;
                                GCC_WARN_UNUSED_VARIABLE = YES;
                                MACOSX_DEPLOYMENT_TARGET = 10.5;