[futurebasic] Re: [FB] Porting to Carbon question

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 2006 : Group Archive : Group : All Groups

From: "H. Gluender" <h@...>
Date: Sun, 12 Mar 2006 17:22:54 +0100
Steve and, perhaps more important, Joe Lertola,

I support every word Robert Purves said concerning the file system 
issue. However I should like to go even further...

If somebody didn't yet adopt FSSpecs, then don't do it, switch 
immediately to FSRefs. They are much more consequent in the 
construction of their associated toolbox routines! I hope that Staz 
does provide the necessary headers with FB4R2. (I did a translation 
of the FSRef-headers some years ago but at that time the underlying 
information came from the CarbonLib and may be somewhat outdated 
today.)

BTW Rosetta has little to do with the FSSpec/FSRef-issue but the 
length of file names is an important though not the only argument for 
using FSRefs.

The real pity is that Staz didn't adopt FSRefs for the FB 
file-routines yet. Consequently, the transition may perhaps be a 
little harder than necessary, i.e. you must learn to use Apple's 
FSRef toolbox routines which, IMO is not as hard as it may seem.

In any case and to help making decisions about a transition to 
whatever file system specification, please read the excellent article 
by Laurence Harris that is available from Apple's WebSite as TechNote 
TN2078:

"Migrating to FSRefs and long Unicode names from FSSpecs"

Best

Herbie

----------------------

Steve Crossman replied:

>  I support every word Robert Purves said concerning the file system issue.
>  However I should go even further...

I do too, but I would like to know more about these prolific issues 
causing bugs using vrefs.

steve

----------------------

Steve,

volume refs are part of FSSpecs, so would you mind reading the 
proposed article?
Here is the URL:

<http://developer.apple.com/technotes/tn2002/tn2078.html>

(BTW, volume refs per se never worked for identifying a file!)

Best
-- 


                   Herbie

          ------------------------

          <http://www.gluender.de>