Revision: 26807 http://sourceforge.net/p/bibdesk/svn/26807 Author: hofman Date: 2021-09-05 21:03:34 +0000 (Sun, 05 Sep 2021) Log Message: ----------- Just set URL and FSRef when initializing with URL and base path, alias and relative path should not need to be updated
Modified Paths: -------------- trunk/bibdesk/BDSKLinkedFile.m Modified: trunk/bibdesk/BDSKLinkedFile.m =================================================================== --- trunk/bibdesk/BDSKLinkedFile.m 2021-09-05 20:56:52 UTC (rev 26806) +++ trunk/bibdesk/BDSKLinkedFile.m 2021-09-05 21:03:34 UTC (rev 26807) @@ -321,9 +321,13 @@ self = [self initWithAlias:anAlias relativePath:relPath delegate:aDelegate]; [anAlias release]; - if (self && basePath) - // this initalizes the FSRef and update the alias - [self updateFileRef]; + if (self && basePath) { + FSRef aRef; + if (BDSKPathToFSRef([aURL path], &aRef)) { + fileRef = [[BDSKFileRef alloc] initWithFSRef:&aRef]; + fileURL = BDSKCreateURLFromFSRef(&aRef); + } + } return self; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Bibdesk-commit mailing list Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit