[futurebasic] Re: [FB] FSSpecs v RefNums

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 2002 : Group Archive : Group : All Groups

From: Brian Stevens<brilor@...>
Date: Thu, 25 Apr 2002 20:02:47 -0700
>To ensure any Future apps will run in OS9 & OSX, what should I be using
>instead of:
>
>1. SYSTEM(_aplVol)
>
>2. FOLDER(path$,vol)
>
>TIA
>Bernie
>
Bernie,

I don't recall seeing anything saying you can't use system(_apVol) to 
save files to the application volume. I think Andy is handling this 
beneath the covers for us. He has also given us some gems like fn 
FBWDtoPBWD(pb&) to help make our existing routines that use vrefnums 
continue to work. FOLDER using pathnames risks the problems mentioned 
here many times and is discouraged by Apple (or course they pushed 
FSSPecs and now they have said 63 character file names will be too 
small - not sure how they will (or if) move the FSSpecs structure 
forward). For my code I have set up a general FN to find any folder I 
pass to it and return an FSSpec record. This seems to work and keeps 
OS X happy.

Brian