diff --git a/Source/NSCursor.m b/Source/NSCursor.m index 3133095c8..aaa1fa919 100644 --- a/Source/NSCursor.m +++ b/Source/NSCursor.m @@ -671,7 +671,7 @@ backgroundColorHint:(NSColor *)bg if ([[image name] isEqualToString:@"file://localhost/Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework/Resources/DVTIbeamCursor.tiff"]) { - NSLog(@"An NSCursor object was encoded with the image " + NSDebugLog(@"An NSCursor object was encoded with the image " @"file://localhost/Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework/Resources/DVTIbeamCursor.tiff. " @"This cursor was automatically substituted with [NSCursor IBeamCursor]."); diff --git a/Source/NSImage.m b/Source/NSImage.m index d77d174b6..045f90250 100644 --- a/Source/NSImage.m +++ b/Source/NSImage.m @@ -1730,7 +1730,7 @@ static NSSize GSResolutionOfImageRep(NSImageRep *rep) else if ([[tmp absoluteString] rangeOfString:@"/Xcode.app/"].length > 0 || [[tmp absoluteString] rangeOfString:@"/DVTKit.framework/"].length > 0) { - NSLog (@"WARNING: Decoding image with absolute path %@." + NSDebugLog (@"WARNING: Decoding image with absolute path %@." @" Xcode may have inserted this in your XIB and the" @" image may not be available in the app's resources" , [tmp absoluteString]); diff --git a/Source/NSScreen.m b/Source/NSScreen.m index fafc8d822..d00908791 100644 --- a/Source/NSScreen.m +++ b/Source/NSScreen.m @@ -119,7 +119,6 @@ static NSMutableArray *screenArray = nil; [screenArray addObject: screen]; RELEASE(screen); } - NSLog(@"NSScreen:screens: %@", screenArray); return [NSArray arrayWithArray: screenArray]; } diff --git a/Source/NSTabView.m b/Source/NSTabView.m index 4c929ecc4..9e0c16b9d 100644 --- a/Source/NSTabView.m +++ b/Source/NSTabView.m @@ -92,6 +92,9 @@ _selected = nil; RELEASE(_items); RELEASE(_font); + // Reset the _selected attribute to prevent crash when -dealloc calls + // -setNextKeyView: + _selected = nil; [super dealloc]; }