scamper problem
John M McIntosh
johnmci at smalltalkconsulting.com
Thu Mar 3 19:58:43 UTC 2005
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
|