lotus



previous page: 4.8) So how do I get the names of the files in a directory? (Files - Mac Programming)
  
page up: Mac Programming FAQ
  
next page: 4.10) How do I make the Finder see a new file that I created? Or if I changed the type of it; how do I display a new icon for it? (Files - Mac Programming)

4.9) How do I find the name of a folder for which I only know the dirID and vRefNum? (Files - Mac Programming)




Description

This article is from the Mac Programming FAQ, by Jon Watte h+@austin.metrowerks.com with numerous contributions by others.

4.9) How do I find the name of a folder for which I only know the dirID and vRefNum? (Files - Mac Programming)

You call (surprise!) PBGetCatInfo! Make ioNamePtr point to an empty
string (but NOT NULL) of length 63 (like, an Str63) and ioFDirIndex
negative (-1 is a given winner) - this makes PBGetCatInfo return
information about the vRefNum/dirID folder instead of the file/folder
specified by vRefNum, parID and name.

 

Continue to:















TOP
previous page: 4.8) So how do I get the names of the files in a directory? (Files - Mac Programming)
  
page up: Mac Programming FAQ
  
next page: 4.10) How do I make the Finder see a new file that I created? Or if I changed the type of it; how do I display a new icon for it? (Files - Mac Programming)