From: Michael J. Rubinsky Date: Sat, 26 Sep 2009 16:59:31 +0000 (-0400) Subject: Remove a bunch of NSLog output, set a DEBUG preprocessor macro for the debug build. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=df3ede3694cc800c68a16d074291f8f796d59bdc;p=horde.git Remove a bunch of NSLog output, set a DEBUG preprocessor macro for the debug build. --- diff --git a/ApertureToAnselExportPlugin/ApertureToAnselExportPlugin.m b/ApertureToAnselExportPlugin/ApertureToAnselExportPlugin.m index a480f3ae9..7212b2283 100644 --- a/ApertureToAnselExportPlugin/ApertureToAnselExportPlugin.m +++ b/ApertureToAnselExportPlugin/ApertureToAnselExportPlugin.m @@ -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 diff --git a/ApertureToAnselExportPlugin/ApertureToAnselExportPlugin.xcodeproj/project.pbxproj b/ApertureToAnselExportPlugin/ApertureToAnselExportPlugin.xcodeproj/project.pbxproj index 36749f499..74cff18b4 100644 --- a/ApertureToAnselExportPlugin/ApertureToAnselExportPlugin.xcodeproj/project.pbxproj +++ b/ApertureToAnselExportPlugin/ApertureToAnselExportPlugin.xcodeproj/project.pbxproj @@ -363,6 +363,7 @@ 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;