diff --git a/Info.plist b/Info.plist index 409aff3..b0a3770 100644 --- a/Info.plist +++ b/Info.plist @@ -17,11 +17,11 @@ CFBundlePackageType BNDL CFBundleShortVersionString - 1.0 + 1.1 CFBundleSignature ???? CFBundleVersion - 1.0 + 2 NSPrincipalClass iTunesCantComplainView diff --git a/NoAlbumArt.png b/NoAlbumArt.png index 376e079..ad4af79 100644 Binary files a/NoAlbumArt.png and b/NoAlbumArt.png differ diff --git a/NoAlbumArt.pxm b/NoAlbumArt.pxm new file mode 100644 index 0000000..ed6efd2 Binary files /dev/null and b/NoAlbumArt.pxm differ diff --git a/iTunesCantComplain.xcodeproj/project.pbxproj b/iTunesCantComplain.xcodeproj/project.pbxproj index 9a52455..8fe68a4 100644 --- a/iTunesCantComplain.xcodeproj/project.pbxproj +++ b/iTunesCantComplain.xcodeproj/project.pbxproj @@ -165,6 +165,9 @@ /* Begin PBXProject section */ 089C1669FE841209C02AAC07 /* Project object */ = { isa = PBXProject; + attributes = { + LastUpgradeCheck = 0610; + }; buildConfigurationList = EF7AD73108BB986600CE4634 /* Build configuration list for PBXProject "iTunesCantComplain" */; compatibilityVersion = "Xcode 3.0"; developmentRegion = English; @@ -232,10 +235,11 @@ EF7AD72E08BB986600CE4634 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + CLANG_ENABLE_OBJC_ARC = YES; COPY_PHASE_STRIP = NO; GCC_DYNAMIC_NO_PIC = NO; GCC_ENABLE_FIX_AND_CONTINUE = YES; - GCC_ENABLE_OBJC_GC = supported; + GCC_ENABLE_OBJC_GC = unsupported; GCC_MODEL_TUNING = G5; GCC_OPTIMIZATION_LEVEL = 0; GCC_PRECOMPILE_PREFIX_HEADER = YES; @@ -251,13 +255,9 @@ EF7AD72F08BB986600CE4634 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = ( - x86_64, - ppc, - i386, - ); + CLANG_ENABLE_OBJC_ARC = YES; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_ENABLE_OBJC_GC = supported; + GCC_ENABLE_OBJC_GC = unsupported; GCC_MODEL_TUNING = G5; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = iTunesCantComplain_Prefix.pch; @@ -273,8 +273,10 @@ buildSettings = { GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.10; PREBINDING = NO; - SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.6.sdk"; + SDKROOT = macosx; + VALID_ARCHS = x86_64; }; name = Debug; }; @@ -283,8 +285,10 @@ buildSettings = { GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.10; PREBINDING = NO; - SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.6.sdk"; + SDKROOT = macosx; + VALID_ARCHS = x86_64; }; name = Release; }; diff --git a/iTunesCantComplainView.h b/iTunesCantComplainView.h index 4baadc3..f15a1c1 100644 --- a/iTunesCantComplainView.h +++ b/iTunesCantComplainView.h @@ -20,11 +20,11 @@ float currTrackPercentage; } -@property(retain) NSImage* currTrackArt; -@property(retain) NSString* currTrackArtist; -@property(retain) NSString* currTrackAlbum; -@property(retain) NSString* currTrackName; -@property(retain) NSString* currTrackLyrics; +@property(strong) NSImage* currTrackArt; +@property(strong) NSString* currTrackArtist; +@property(strong) NSString* currTrackAlbum; +@property(strong) NSString* currTrackName; +@property(strong) NSString* currTrackLyrics; @property float currTrackPercentage; @property NSPoint imagePos; diff --git a/iTunesCantComplainView.m b/iTunesCantComplainView.m index 0f6ce10..b665e3c 100644 --- a/iTunesCantComplainView.m +++ b/iTunesCantComplainView.m @@ -44,13 +44,7 @@ -(void) dealloc name: @"com.apple.iTunes.playerInfo" object: nil]; - [currTrackArt release]; - [currTrackArtist release]; - [currTrackAlbum release]; - [currTrackName release]; - [currTrackLyrics release]; - [super dealloc]; } - (void)startAnimation @@ -171,14 +165,14 @@ -(void) iTunesTrackChanged: (NSNotification*)notif iTunesTrack* currTrack = [itunes currentTrack]; NSArray* theImages = [[currTrack artworks] get]; NSString* imgPath = [[NSBundle bundleForClass: [self class]] pathForImageResource: @"NoAlbumArt"]; - NSImage* noAlbumArt = [[[NSImage alloc] initWithContentsOfFile: imgPath] autorelease]; + NSImage* noAlbumArt = [[NSImage alloc] initWithContentsOfFile: imgPath]; NS_DURING if( [theImages count] > 0 ) { NSImage * possibleImage = [(iTunesArtwork*)[theImages objectAtIndex: 0] data]; if( [possibleImage isKindOfClass: [NSAppleEventDescriptor class]] ) - possibleImage = [[[NSImage alloc] initWithData: [(NSAppleEventDescriptor*)possibleImage data]] autorelease]; + possibleImage = [[NSImage alloc] initWithData: [(NSAppleEventDescriptor*)possibleImage data]]; [self setCurrTrackArt: possibleImage]; } else