Skip to content

Commit

Permalink
Less logging in the background (this is version 1.2.2 on the web site).
Browse files Browse the repository at this point in the history
  • Loading branch information
uliwitness committed Apr 27, 2015
1 parent 1113a01 commit f846314
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.2.1</string>
<string>1.2.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>4</string>
<string>5</string>
<key>NSPrincipalClass</key>
<string>iTunesCantComplainView</string>
</dict>
Expand Down
10 changes: 5 additions & 5 deletions iTunesCantComplainView.m
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ - (void)drawRect: (NSRect)rect
desiredBox.size.height = (330.0f * scaleFactor);
[[self currTrackArt] drawInRect: desiredBox fromRect: NSZeroRect operation: NSCompositeSourceAtop fraction: 1.0];
}
else if( [self currTrackArt] != nil )
NSLog( @"curr track art = %@", [self currTrackArt] );
// else if( [self currTrackArt] != nil )
// NSLog( @"curr track art = %@", [self currTrackArt] );

// if( desiredBox.size.width <= 100.0 )
// {
// desiredBox.size.height = 300.0f * scaleFactor;
Expand All @@ -112,7 +112,7 @@ - (void)drawRect: (NSRect)rect
// NSRectFill(desiredBox);
// }

NSLog( @"iTunesCantComplain: %s coverArtSize = %@", __PRETTY_FUNCTION__, NSStringFromSize( desiredBox.size ) );
// NSLog( @"iTunesCantComplain: %s coverArtSize = %@", __PRETTY_FUNCTION__, NSStringFromSize( desiredBox.size ) );
NS_HANDLER
NSLog( @"iTunesCantComplain: %s(2) Error %@", __PRETTY_FUNCTION__, [localException reason] );
NS_ENDHANDLER
Expand Down Expand Up @@ -212,7 +212,7 @@ -(void) iTunesTrackChanged: (NSNotification*)notif
float duration = [currTrack duration];
float percentage = [itunes playerPosition] / duration;
[self setCurrTrackPercentage: (duration > 0) ? percentage : -1.0];
NSLog(@"duration: %f pos: %ld percentage: %f", [currTrack duration], (long)[itunes playerPosition], percentage);
// NSLog(@"duration: %f pos: %ld percentage: %f", [currTrack duration], (long)[itunes playerPosition], percentage);

// If we don't have a regular track, but a stream, Album will be NIL.
// Extract equivalent info from the stream info:
Expand Down

0 comments on commit f846314

Please sign in to comment.