On 24 Oct 2007, at 7:51 PM, Adam R. Maxwell wrote:

>
> On Wednesday, October 24, 2007, at 08:28AM, "Christiaan Hofman"  
> <[EMAIL PROTECTED]> wrote:
>
>> There seems to be a more serious problem. Relative paths don't seem
>> to work at all. At least, I'm unable to make it work. I did the
>
> I don't have time to look at it now, but this might be helpful.  I  
> guess worst case is we go back to writing our own relative path  
> implementation.
>
> http://developer.apple.com/documentation/mac/files/Files-343.html

Yes, I saw that. And it says the same thing as the Alias Manager  
documentation. It is just bullshit: relative paths are completely  
ignored, whatever they say. I just ran the following simple test case:

1. Create an alias to ~/Desktop/test.pdf relative to ~/Desktop/
2. Create a copy of the file at ~/Desktop/test/test.pdf
3. Resolve the alias (using FSResolveAlias, or using FSMatchAlias  
with kARMRelFirst passed in the rules mask), but now relative to ~/ 
Desktop/test/

It will find the file ~/Desktop/test.pdf, *not* ~/Desktop/test/ 
test.pdf as the documentation says. If ~/Desktop/test.pdf does not  
exist anymore, resolving the alias fails.

I've filed a radar.

So I think we'll have to handle relative paths ourselves. This is  
quite annoying, as it is pretty complex to update the relative path  
properly.

Christriaan


-------------------------------------------------------------------------
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-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-develop

Reply via email to