scamper problem

Todd Blanchard tblanchard at mac.com
Fri Mar 4 08:13:37 UTC 2005


I'm curious why you don't deprecate the HFS+ pathing conventions and  
switch to unix style paths since the apis are there on OSX.

On Mar 3, 2005, at 11:58 AM, John M McIntosh wrote:

> Gee how timely, I was working on Tk4/Sophie this morning and coding up  
> a FileURL for a font file.
>
> say
> FileUrl absoluteFromText: 'file:///Library/Fonts/Corsiva.ttf'.
>
> But the problem is on the mac when I ask for the pathForFile
> I get back
>
> ':Library:Fonts:Corsiva.ttf'
>
> The leading ':' implies under HFS+ to use the current working  
> directory and of course we don't get the file open.
> In this case the path should be:
> 'Library:Fonts:Corsiva.ttf''
>
> Now if I say
> FileUrl absoluteFromText: 'file:Library/Fonts/Corsiva.ttf'.
> which gets me a non-absolute file URL object, then I'll get the HFS+  
> correct, but that's wrong...
>
>
> On Mar 3, 2005, at 6:31 AM, goran.krampe at bluefish.se wrote:
>
>> PS. I worked hard on getting FileUrl correct, and I think and hope it
>> is. :)
>>
>>
> --
> ======================================================================= 
> ====
> John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
> Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
> ======================================================================= 
> ====
>
>




More information about the Squeak-dev mailing list