Switch to the new metadata api.

This commit is contained in:
Damiano Galassi committed 2016-10-11 18:12:42 +02:00
1 parent b21eab22e4
commit 6c1b470be7
14 files changed
+1016 -1063

No files matched your search

+2 -6
View File
@@ -89,7 +89,6 @@ NSString *SBPresetManagerUpdatedNotification = @"SBPresetManagerUpdatedNotificat
continue;
}
newPreset.edited = NO;
[_presets addObject:newPreset];
}
}
@@ -117,11 +116,8 @@ NSString *SBPresetManagerUpdatedNotification = @"SBPresetManagerUpdatedNotificat
}
for (MP42Metadata *object in _presets) {
if (object.isEdited) {
NSString *saveLocation = [NSString stringWithFormat:@"%@/%@.sbpreset", appSupportPath, object.presetName];
noErr = [NSKeyedArchiver archiveRootObject:object
toFile:saveLocation];
}
NSString *saveLocation = [NSString stringWithFormat:@"%@/%@.sbpreset", appSupportPath, object.presetName];
noErr = [NSKeyedArchiver archiveRootObject:object toFile:saveLocation];
}
return noErr;
}