[Ann] Nile 0.8.0 available

Damien Cassou damien.cassou at gmail.com
Mon May 14 19:10:22 UTC 2007


2007/5/14, subbukk <subbukk at gmail.com>:
> On Monday 14 May 2007 10:44 pm, Damien Cassou wrote:
> > Nile has nothing to do with File/Directory classes. It's only for
> > streaming. Yes, you can stream over a file, but our implementation
> > relies on FileDirectory. What Nile aims to replace is ReadStream,
> > WriteStream, StandardFileStream, SocketStream, ZipReadStream...
> Nile passes the argument it receives via its
> NSAbstractFileStream>>setFileName:  method to file primitives for opening a
> file, thereby assuming it is a string. This would force callers (see
> TTFFontDescription>>setDefault) to use paths like :
>
>    setFileName: "C:\WINDOWS\Fonts\msgothic.ttf"
>
> to open a stream on a file. This would affect portability.  I believe the
> issue is traceable to FileDirectory failing to hide platform-specific aspects
> in pathnames. I could be wrong, though.

You are right :-) Having a path instead of a string would be better.
Rio or URI might be of help here. If you want to experiment, feel free
to do so. The repository is open.

Thank you for your interest in Nile.

-- 
Damien Cassou



More information about the Squeak-dev mailing list