Import flat MusicXML files

This commit is contained in:
Matthias Neeracher 2007-09-03 13:58:37 +00:00
parent b048f76565
commit c54aa45bee

View File

@ -56,6 +56,7 @@
- (BOOL)readFromXMLFileWrapper:(NSFileWrapper *)wrapper error:(NSError **)outError - (BOOL)readFromXMLFileWrapper:(NSFileWrapper *)wrapper error:(NSError **)outError
{ {
if ([wrapper isDirectory]) {
NSDictionary * wrappers = [wrapper fileWrappers]; NSDictionary * wrappers = [wrapper fileWrappers];
if ((vcsWrapper = [wrappers objectForKey:@"CVS"]) if ((vcsWrapper = [wrappers objectForKey:@"CVS"])
|| (vcsWrapper = [wrappers objectForKey:@".svn"]) || (vcsWrapper = [wrappers objectForKey:@".svn"])
@ -74,6 +75,8 @@
} }
return [self readFromFileWrapper:[wrappers objectForKey:@"Song"] withFilter:@"VLMusicXMLType" return [self readFromFileWrapper:[wrappers objectForKey:@"Song"] withFilter:@"VLMusicXMLType"
error:outError]; error:outError];
} else
return [self readFromFileWrapper:wrapper withFilter:@"VLMusicXMLType" error:outError];
} }
@end @end