scamper problem

John M McIntosh johnmci at smalltalkconsulting.com
Thu Mar 3 20:06:32 UTC 2005


Right so the Tweak image I have might be 3.8 (mostly) but it's not  
quite.
I see
"Change Set:		FixUrlAgain3
Date:			18 October 2004
Author:			Andreas Raab

A third attempt at fixing FileUrl>>pathForFile."

fixes the issue.

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
> ======================================================================= 
> ====
>
>
>
--
======================================================================== 
===
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