Revision: 18284
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18284&view=rev
Author:   hofman
Date:     2011-12-04 11:07:23 +0000 (Sun, 04 Dec 2011)
Log Message:
-----------
use try block instead of old style macros

Modified Paths:
--------------
    trunk/bibdesk/BibPref_AutoFile.m

Modified: trunk/bibdesk/BibPref_AutoFile.m
===================================================================
--- trunk/bibdesk/BibPref_AutoFile.m    2011-12-04 07:35:05 UTC (rev 18283)
+++ trunk/bibdesk/BibPref_AutoFile.m    2011-12-04 11:07:23 UTC (rev 18284)
@@ -460,11 +460,8 @@
     BOOL isDir;
     // we want to return the original value if it's valid, not the expanded 
path; the action method should expand it
     NSString *pathString = [string stringByStandardizingPath];
-    NS_DURING
-        pathString = [[NSFileManager defaultManager] 
resolveAliasesInPath:pathString];
-    NS_HANDLER
-        NSLog(@"Ignoring exception %@ raised while resolving aliases in %@", 
[localException name], pathString);
-    NS_ENDHANDLER
+    @try{ pathString = [[NSFileManager defaultManager] 
resolveAliasesInPath:pathString]; }
+    @catch (id e) { NSLog(@"Ignoring exception %@ raised while resolving 
aliases in %@", [e respondsToSelector:@selector(name)] ? [e name] : e, 
pathString); }
     if([[NSFileManager defaultManager] fileExistsAtPath:pathString 
isDirectory:&isDir] == NO){
         if(error)
             *error = [NSString stringWithFormat:NSLocalizedString(@"The 
directory \"%@\" does not exist.", @"Error description"), pathString];

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to