mirror of
https://github.com/microtherion/VocalEasel.git
synced 2024-12-22 19:23:59 +00:00
Import flat MusicXML files
This commit is contained in:
parent
b048f76565
commit
c54aa45bee
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user