[futurebasic] Re: [FB] CFIndexRead using FSRef

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

From: Brian Stevens <bstevens33@...>
Date: Mon, 28 Jan 2008 16:40:08 -0700
On Jan 28, 2008, at 1:21 PM, Steve wrote:

> The code that does what ?   I obtain the g_datafolder vref by  
> either a double-click from the Finder of a Company file or they  
> select the folder using Nav Services,
>
> Once I have that I used the call :
>
>  g_item_db_folder = folder("items", g_datafolder)
>
> then use the open statement
>
> open "I", 1, "MyFile",, g_item_db_folder
>
> and I can open MyFile in the items folder inside the data folder.
Yes, that code works nicely in FB and does all the working directory  
(WD) work behind the scenes. Unfortunately, most (if not all) of the  
code used to support FOLDER uses WDs and some of the parameter block  
(PB) calls are deprecated (e.g. pbGetcatinfosync). As noted in the  
FBtoC docs, FOLDER will not be supported in its current state. It  
might be  possible for someone to write a replacement that provides  
similar functionality but uses the current file manager calls.


Brian S.