[futurebasic] Re: [FB] FSSpecs vs FSRefs

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2008 : Group Archive : Group : All Groups

From: Yoshiyuki Hasegawa <hase44@...>
Date: Thu, 24 Jan 2008 03:51:04 +0900
Ken

The domination of FSRefs was actually felt by your demonstration code.
I will use only FSRefs in FBtoC.

Thank you.

Yoshiyuki

Ken Shmidheiser wrote:

>
> With the recent discussions concerning FSSpec vs FSRefs,
> I through together a little utility to show how easily interchangeable
> they are. At the same time, FSRefs are superior in their
> capabilities, although not quite as simple to use as FSSpecs.
>
> To make the best use of this, create a file on your Desktop
> with an extremely long name. Using the utility, notice how
> much more gracefully FSRefs handle the long name.
>
> This demo also shows different techniques that can be used
> to obtain an FSRef depending on whether the code is
> compiled as a CFM app with FB, or as a Universal Binary
> with gcc via FBtoC.
>
> FBtoC has the very nice capability of directly returning
> an FSRef with File$, while FB can only return an FSSpec
> with the File$ statement.
>
> Ken