diff --git a/Preferences/Preferences/PathSuggester.m b/Preferences/Preferences/PathSuggester.m index cf1a88faf..5f39e0e21 100644 --- a/Preferences/Preferences/PathSuggester.m +++ b/Preferences/Preferences/PathSuggester.m @@ -11,7 +11,13 @@ #import "SandboxBroker.h" -#import "AudioContainer.h" +@interface AudioContainer : NSObject { +} + ++ (NSArray *)urlsForContainerURL:(NSURL *)url; ++ (NSArray *)dependencyUrlsForContainerURL:(NSURL *)url; + +@end // Sync, only declare items we need @interface PlaylistEntry @@ -107,8 +113,10 @@ static NSURL *defaultMoviesDirectory(void) { NSArray *originalArray = [results valueForKey:@"url"]; NSMutableArray *array = [originalArray mutableCopy]; + id audioContainerClass = NSClassFromString(@"AudioContainer"); + for(NSURL *url in originalArray) { - NSArray *containedUrls = [AudioContainer dependencyUrlsForContainerURL:url]; + NSArray *containedUrls = [audioContainerClass dependencyUrlsForContainerURL:url]; if(containedUrls && [containedUrls count] > 0) { [array addObjectsFromArray:containedUrls]; } diff --git a/Preferences/Preferences/Preferences.xcodeproj/project.pbxproj b/Preferences/Preferences/Preferences.xcodeproj/project.pbxproj index 0687baf01..cc920f0b2 100644 --- a/Preferences/Preferences/Preferences.xcodeproj/project.pbxproj +++ b/Preferences/Preferences/Preferences.xcodeproj/project.pbxproj @@ -102,7 +102,6 @@ 8307D31328606EAF000FF8EB /* growl@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "growl@2x.png"; path = "Icons/growl@2x.png"; sourceTree = ""; }; 8307D31428606EAF000FF8EB /* general.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = general.png; path = Icons/general.png; sourceTree = ""; }; 8307D31528606EAF000FF8EB /* growl.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = growl.png; path = Icons/growl.png; sourceTree = ""; }; - 832FAE812868566F008B48B3 /* AudioContainer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AudioContainer.h; path = ../../Audio/AudioContainer.h; sourceTree = ""; }; 833F681B1CDBCAA700AFB9F0 /* es */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = es; path = es.lproj/InfoPlist.strings; sourceTree = ""; }; 833F681C1CDBCAA700AFB9F0 /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = es; path = es.lproj/Localizable.strings; sourceTree = ""; }; 8347435D20E6D58800063D45 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Preferences.strings; sourceTree = ""; }; @@ -204,7 +203,6 @@ 08FB77AFFE84173DC02AAC07 /* Classes */ = { isa = PBXGroup; children = ( - 832FAE812868566F008B48B3 /* AudioContainer.h */, 839E3B5728659B2700880EA2 /* AppController.h */, 83AC573E2861B77E009D6F50 /* SandboxBroker.h */, 8307D30828604ECF000FF8EB /* PlaylistController.h */,