Revision: 4096
http://skim-app.svn.sourceforge.net/skim-app/?rev=4096&view=rev
Author: hofman
Date: 2008-06-28 16:20:00 -0700 (Sat, 28 Jun 2008)
Log Message:
-----------
Add hidden default to ignore errors when reading notes from EAs.
Modified Paths:
--------------
trunk/SKPDFDocument.m
Modified: trunk/SKPDFDocument.m
===================================================================
--- trunk/SKPDFDocument.m 2008-06-28 21:57:18 UTC (rev 4095)
+++ trunk/SKPDFDocument.m 2008-06-28 23:20:00 UTC (rev 4096)
@@ -83,6 +83,7 @@
static NSString *SKAutoReloadFileUpdateKey = @"SKAutoReloadFileUpdate";
static NSString *SKAutoRotatePrintedPagesKey = @"SKAutoRotatePrintedPages";
static NSString *SKDisableReloadAlertKey = @"SKDisableReloadAlert";
+static NSString *SKIgnoreReadNotesErrorsKey = @"SKIgnoreReadNotesErrors";
static void *SKPDFDocumentDefaultsObservationContext = (void
*)@"SKPDFDocumentDefaultsObservationContext";
@@ -626,7 +627,7 @@
if ((data = [[NSData alloc] initWithContentsOfURL:absoluteURL
options:NSUncachedRead error:&error]) &&
(pdfDoc = [[PDFDocument alloc] initWithURL:absoluteURL])) {
NSArray *array = [[NSFileManager defaultManager]
readSkimNotesFromExtendedAttributesAtURL:absoluteURL error:&error];
- if (array == nil) {
+ if (array == nil && [[NSUserDefaults standardUserDefaults]
boolForKey:SKIgnoreReadNotesErrorsKey] == NO) {
NSAlert *alert = [NSAlert
alertWithMessageText:NSLocalizedString(@"Unable to Read Notes", @"Message in
alert dialog")
defaultButton:NSLocalizedString(@"No", @"Button title")
alternateButton:NSLocalizedString(@"Yes", @"Button title")
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit