diff --git a/Mini vMac/InsertDiskViewController.m b/Mini vMac/InsertDiskViewController.m index d48aedc..9d00bca 100644 --- a/Mini vMac/InsertDiskViewController.m +++ b/Mini vMac/InsertDiskViewController.m @@ -62,7 +62,7 @@ - (void)loadDirectoryContents { NSArray *allFiles = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:basePath error:NULL]; - diskImages = [allFiles pathsMatchingExtensions:[AppDelegate sharedInstance].diskImageExtensions]; + diskImages = [allFiles filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"%@ containsObject: pathExtension.lowercaseString", [AppDelegate sharedInstance].diskImageExtensions]]; otherFiles = [allFiles filteredArrayUsingPredicate:[NSPredicate predicateWithBlock:^BOOL(NSString* _Nonnull name, NSDictionary * _Nullable bindings) { BOOL isDiskImage = [diskImages containsObject:name]; BOOL isDirectory;