From: Kent Sutherland Date: Sun, 16 May 2004 18:53:47 +0000 (+0000) Subject: Added another debug statement to see if I cornered that stupid crash bug X-Git-Tag: v1.3~16 X-Git-Url: http://git.ithinksw.org/MenuTunes.git/commitdiff_plain/359d3b6d29d4e3518e7a805465b2e48065161a91?hp=071b43ba6665e38ecf7d06a6696bf3cb2a59b02d Added another debug statement to see if I cornered that stupid crash bug for when it happens 20 days from now. --- diff --git a/MainController.m b/MainController.m index 906dca5..9d2e3cc 100755 --- a/MainController.m +++ b/MainController.m @@ -326,9 +326,10 @@ static MainController *sharedController; - (void)setLatestSongIdentifier:(NSString *)newIdentifier { - ITDebugLog(@"Setting latest song identifier to %@", newIdentifier); + ITDebugLog(@"Setting latest song identifier:"); + ITDebugLog(@" - Identifier: %@", newIdentifier); [_latestSongIdentifier autorelease]; - _latestSongIdentifier = [newIdentifier copy]; + _latestSongIdentifier = [newIdentifier retain]; } - (void)timerUpdate @@ -766,6 +767,8 @@ static MainController *sharedController; NSImage *art = nil; int rating = -1; + ITDebugLog(@"Showing track info status window."); + NS_DURING source = [[self currentRemote] currentSource]; title = [[self currentRemote] currentSongTitle]; @@ -773,8 +776,6 @@ static MainController *sharedController; [self networkError:localException]; NS_ENDHANDLER - ITDebugLog(@"Showing track info status window."); - if ( title ) { if ( [df boolForKey:@"showAlbum"] ) { @@ -859,6 +860,7 @@ static MainController *sharedController; } else { title = NSLocalizedString(@"noSongPlaying", @"No song is playing."); } + ITDebugLog(@"Showing current track info status window."); [statusWindowController showSongInfoWindowWithSource:source title:title album:album