On Jan 27, 2008, at 2:45 PM, andy@... wrote: >> On Jan 26, 2008, at 3:01 AM, andy@... wrote: >> >>> Hi Brian / Robert, >>> >>> I am finding it hard to track down the documentation on FSRefs >> Tons. The FileManager section of XCode docs or Apple Developer web >> site. What is it specifically you need to know? > > How FSRefs are applied and used in FB... At a toolbox call level FB's use of FSRef is virtually the same (not counting syntax differences between the two languages) as C. There are numerous C examples. > >> FBtoC documents any differences from FB. Other than that it uses >> FSRefs the same way Apple defines them. There is nothing extra added >> or removed. > > ok. I can't actually find the references in the Apple > documentation. A url > would be useful. Did you see the long detailed explanation by Ken a few days ago? It was a good summary. Read it. Also the carbondev list has some discussion - not as complete as Ken's and focuses on FSRef compared to POSIX. That url is: http:// www.carbondev.com/site/?page=FSRefvsPOSIX > >>> Locate application volume > > I presume I cannot use SYSTEM(_Aplvol) - what is the alternative? Again, a solution was posted yesterday. Look for it. > >>> Goto Sub folder > > Folder has gone - what is the alternative? This is mentioned in the FBtoC documentation in the section "Adapting your Code for FBtoC" There have been a few recent posts demonstrating how to use FSFindFolder. Please take a look at these and then post again with whatever questions you have for things you don't know how to do. Be as specific as possible. > >>> Let user select folder >>> Open file for Read >>> Read file >>> Open file for Write >>> Write file >> >> Read file, Write file are not concerned with how the file was opened >> (i.e. with a FSSpec or a FSRef) so their syntax for use with FSRefs >> does not change. All they do is read or write. The choice of FSRef >> vs. FSSpec comes when the file is OPENed (see the Language >> Enhancement section of FBtoC help). Open file for read or write is >> also documented in the Language Enhancement section of FBtoC docs. >> >> "Let user select folder". This is just a matter of picking the FSRef >> version of a call when call Navigation Services. If you are asking >> about the corresponding FSRef support in files$ for _FSSpecFolder, it >> doesn't exist yet (AFAIK). Somebody will have to write it or you will >> have to cal Nav Services directly (which is what files$ does) > > Ok, thanks Brian, useful information - it should be saved somewhere so > newbies can access this. List posts are archived. Brian S.