Revision: 3258
http://skim-app.svn.sourceforge.net/skim-app/?rev=3258&view=rev
Author: hofman
Date: 2007-11-25 04:35:37 -0800 (Sun, 25 Nov 2007)
Log Message:
-----------
Don't write atomically, as this is a temporary location for an atomic write
anyway.
Modified Paths:
--------------
trunk/SKDocument.m
Modified: trunk/SKDocument.m
===================================================================
--- trunk/SKDocument.m 2007-11-24 22:58:19 UTC (rev 3257)
+++ trunk/SKDocument.m 2007-11-25 12:35:37 UTC (rev 3258)
@@ -389,7 +389,7 @@
BOOL didWrite = NO;
NSError *error = nil;
if ([typeName isEqualToString:SKPDFDocumentType] || [typeName
isEqualToString:SKPDFDocumentUTI]) {
- didWrite = [pdfData writeToURL:absoluteURL options:NSAtomicWrite
error:&error];
+ didWrite = [pdfData writeToURL:absoluteURL options:0 error:&error];
// notes are only saved as a dry-run to test if we can write, they are
not copied to the final destination.
// if we automatically save a .skim backup we silently ignore this
problem
if (didWrite && NO == [[NSUserDefaults standardUserDefaults]
boolForKey:SKAutoSaveSkimNotesKey])
@@ -421,18 +421,18 @@
[[self mainWindowController] removeTemporaryAnnotations];
didWrite = [[self pdfDocument] writeToURL:absoluteURL];
} else if ([typeName isEqualToString:SKBarePDFDocumentType] || [typeName
isEqualToString:SKBarePDFDocumentUTI]) {
- didWrite = [pdfData writeToURL:absoluteURL options:NSAtomicWrite
error:&error];
+ didWrite = [pdfData writeToURL:absoluteURL options:0 error:&error];
} else if ([typeName isEqualToString:SKNotesDocumentType] || [typeName
isEqualToString:SKNotesDocumentUTI]) {
NSData *data = [self notesData];
if (data)
- didWrite = [data writeToURL:absoluteURL options:NSAtomicWrite
error:&error];
+ didWrite = [data writeToURL:absoluteURL options:0 error:&error];
else
error = [NSError errorWithDomain:SKDocumentErrorDomain code:1
userInfo:[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Unable
to write notes", @"Error description"), NSLocalizedDescriptionKey, nil]];
} else if ([typeName isEqualToString:SKNotesRTFDocumentType] || [typeName
isEqualToString:SKPDFDocumentUTI]) {
NSData *data = [self notesRTFData];
if (data)
- didWrite = [data writeToURL:absoluteURL options:NSAtomicWrite
error:&error];
+ didWrite = [data writeToURL:absoluteURL options:0 error:&error];
else
error = [NSError errorWithDomain:SKDocumentErrorDomain code:1
userInfo:[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Unable
to write notes as RTF", @"Error description"), NSLocalizedDescriptionKey, nil]];
} else if ([typeName isEqualToString:SKNotesRTFDDocumentType] || [typeName
isEqualToString:SKRTFDDocumentUTI]) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit