Revision: 11399
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=11399&view=rev
Author:   hofman
Date:     2007-10-27 01:50:23 -0700 (Sat, 27 Oct 2007)

Log Message:
-----------
Use relative path to location to save to to construct the alias to save if the 
file could not be found.

Modified Paths:
--------------
    branches/TRY_ARM_FILE_INTERFACE/bibdesk/BDSKFile.m

Modified: branches/TRY_ARM_FILE_INTERFACE/bibdesk/BDSKFile.m
===================================================================
--- branches/TRY_ARM_FILE_INTERFACE/bibdesk/BDSKFile.m  2007-10-26 16:52:14 UTC 
(rev 11398)
+++ branches/TRY_ARM_FILE_INTERFACE/bibdesk/BDSKFile.m  2007-10-27 08:50:23 UTC 
(rev 11399)
@@ -633,9 +633,11 @@
             anAlias = [[[BDAlias alloc] initWithFSRef:fsRef 
relativeToFSRef:&baseRef] autorelease];
         else
             anAlias = [[[BDAlias alloc] initWithFSRef:fsRef] autorelease];
-    } else {
+    } else if (relativePath && newBasePath) {
+        anAlias = [[[BDAlias alloc] initWithPath:relativePath 
relativeToPath:newBasePath] autorelease];
+    }
+    if (anAlias == nil)
         anAlias = alias;
-    }
     
     return [anAlias aliasData];
 }


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: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to