29- (BOOL)writeOOXMLToFile:(NSString*)path atomically:(BOOL)flag errorDescription:(NSString**)outErrorDesc
32 NSString* errorDesc =
nil;
36 if (outErrorDesc != NULL) {
37 *outErrorDesc = [
NSString stringWithFormat:@"could not convert property list to XML: %@", errorDesc];
39#if OOLITE_RELEASE_PLIST_ERROR_STRINGS
45 if (![data writeToFile:path atomically:YES]) {
46 if (outErrorDesc != NULL) {
47 *outErrorDesc = [
NSString stringWithFormat:@"could not write data to %@.", path];