File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -176,14 +176,14 @@ - (BOOL)writeSafelyToURL:(NSURL *)inAbsoluteURL ofType:(NSString *)inTypeName fo
176
176
177
177
if ( success )
178
178
{
179
- success = [ self updateFileWrapper: filewrapper atPath: [inAbsoluteURL path ] error: outError];
180
- [filewrapper writeToFile: filePath atomically: NO updateFilenames: NO ];
179
+ // Save the Core Data portion of the document.
180
+ success = [[ self managedObjectContext ] save: outError ];
181
181
}
182
182
183
183
if ( success )
184
184
{
185
- // Save the Core Data portion of the document.
186
- success = [[ self managedObjectContext ] save: outError ];
185
+ success = [ self updateFileWrapper: filewrapper atPath: [inAbsoluteURL path ] error: outError];
186
+ [filewrapper writeToFile: filePath atomically: NO updateFilenames: NO ];
187
187
}
188
188
189
189
if ( success )
You can’t perform that action at this time.
0 commit comments