Skip to content
Browse files

Eliminate usage of APIs deprecated in 10.6.

  • Loading branch information...
1 parent 81f21b7 commit e4c0121a1da7173d63347c7be46b1a729615824e Marc Liyanage committed Nov 27, 2010
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/DataStore.m
  2. +1 −1 src/TrackGroup.m
View
4 src/DataStore.m
@@ -55,8 +55,8 @@ - (NSPersistentStoreCoordinator *)persistentStoreCoordinator {
fileManager = [NSFileManager defaultManager];
applicationSupportFolder = [self applicationSupportFolder];
if ( ![fileManager fileExistsAtPath:applicationSupportFolder isDirectory:NULL] ) {
- [fileManager createDirectoryAtPath:applicationSupportFolder attributes:nil];
- }
+ [fileManager createDirectoryAtPath:applicationSupportFolder withIntermediateDirectories:YES attributes:nil error:nil];
+ }
NSString *filename = [NSString stringWithFormat:@"%@.sqlite", [self applicationName]];
url = [NSURL fileURLWithPath: [applicationSupportFolder stringByAppendingPathComponent:filename]];
persistentStoreCoordinator = [[NSPersistentStoreCoordinator alloc] initWithManagedObjectModel:[self managedObjectModel]];
View
2 src/TrackGroup.m
@@ -20,7 +20,7 @@ @implementation TrackGroup
- (NSImage *)tinyAlbumImage {
if (tinyAlbumImage) return tinyAlbumImage;
NSImage *image = [[NSImage alloc] initWithData:self.imageData];
- NSImageRep *sourceImageRep = [image bestRepresentationForDevice:nil];
+ NSImageRep *sourceImageRep = [[image representations] lastObject];
NSImage *targetImage = [[NSImage alloc] initWithSize:NSMakeSize(28, 28)];
[targetImage lockFocus];
[[NSGraphicsContext currentContext] setImageInterpolation:NSImageInterpolationHigh];

0 comments on commit e4c0121

Please sign in to comment.
Something went wrong with that request. Please try again.