Revision: 18480
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18480&view=rev
Author: hofman
Date: 2012-02-03 17:03:44 +0000 (Fri, 03 Feb 2012)
Log Message:
-----------
interchange recovery options, as NSAlert uses a different ordering of the
buttons than NSError
Modified Paths:
--------------
trunk/bibdesk/BDSKStringParser.m
Modified: trunk/bibdesk/BDSKStringParser.m
===================================================================
--- trunk/bibdesk/BDSKStringParser.m 2012-02-03 16:49:18 UTC (rev 18479)
+++ trunk/bibdesk/BDSKStringParser.m 2012-02-03 17:03:44 UTC (rev 18480)
@@ -116,7 +116,7 @@
NSError *error = [NSError
mutableLocalErrorWithCode:kBDSKBibTeXParserFailed
localizedDescription:NSLocalizedString(@"Error Reading String", @"Message in
alert dialog when failing to parse dropped or copied string")];
[error setValue:NSLocalizedString(@"There was a problem inserting the
data. Do you want to ignore this data, open a window containing the data to
edit it and remove the errors, or keep going and use everything that BibDesk
could parse?\n(It's likely that choosing \"Keep Going\" will lose some data.)",
@"Informative text in alert dialog")
forKey:NSLocalizedRecoverySuggestionErrorKey];
[error setValue:self forKey:NSRecoveryAttempterErrorKey];
- [error setValue:[NSArray arrayWithObjects:NSLocalizedString(@"Cancel",
@"Button title"), NSLocalizedString(@"Edit data", @"Button title"),
NSLocalizedString(@"Keep going", @"Button title"), nil]
forKey:NSLocalizedRecoveryOptionsErrorKey];
+ [error setValue:[NSArray arrayWithObjects:NSLocalizedString(@"Cancel",
@"Button title"), NSLocalizedString(@"Keep going", @"Button title"),
NSLocalizedString(@"Edit data", @"Button title"), nil]
forKey:NSLocalizedRecoveryOptionsErrorKey];
[error setValue:parseError forKey:NSUnderlyingErrorKey];
parseError = error;
}
@@ -133,9 +133,9 @@
}
+ (BOOL)attemptRecoveryFromError:(NSError *)error
optionIndex:(NSUInteger)recoveryOptionIndex {
- if (recoveryOptionIndex == 1)
+ if (recoveryOptionIndex == 2)
[[BDSKErrorObjectController sharedErrorObjectController]
showEditorForLastPasteDragError];
- return recoveryOptionIndex == 2;
+ return recoveryOptionIndex == 1;
}
@end
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit