Don't count property load as a document change

This commit is contained in:
Matthias Neeracher 2007-05-21 08:22:05 +00:00
parent a7cf4a28df
commit ea4eb7f546

View File

@ -742,12 +742,16 @@ int8_t sStepToPitch[] = {
) )
[vcsWrapper retain]; [vcsWrapper retain];
NSFileWrapper * prop = [wrappers objectForKey:@"Properties"]; NSFileWrapper * prop = [wrappers objectForKey:@"Properties"];
if (prop) if (prop) {
NSUndoManager * undoMgr = [self undoManager];
[undoMgr disableUndoRegistration];
[self setValuesForKeysWithDictionary: [self setValuesForKeysWithDictionary:
[NSPropertyListSerialization [NSPropertyListSerialization
propertyListFromData:[prop regularFileContents] propertyListFromData:[prop regularFileContents]
mutabilityOption:NSPropertyListImmutable mutabilityOption:NSPropertyListImmutable
format:nil errorDescription:nil]]; format:nil errorDescription:nil]];
[undoMgr enableUndoRegistration];
}
return [self readFromXMLData: return [self readFromXMLData:
[[wrappers objectForKey:@"Song"] regularFileContents] [[wrappers objectForKey:@"Song"] regularFileContents]
error:outError]; error:outError];