Path: utzoo!attcan!uunet!cs.utexas.edu!usc!apple!blob From: blob@Apple.COM (Brian Bechtel) Newsgroups: comp.sys.mac.programmer Subject: Re: PBGetCatInfo question Message-ID: <45563@apple.Apple.COM> Date: 11 Oct 90 15:05:27 GMT References: <90283.191801CXT105@psuvm.psu.edu> Organization: Apple Computer Inc., Cupertino, CA Lines: 19 CXT105@psuvm.psu.edu (Christopher Tate) writes: >Are indexed calls to PBGetCatInfo() guaranteed to return file/folder >names in alphabetical position? That is, if I start with 1 and call >PBGetCatInfo() for every index, one at a time, until I get an error, >are the names of the folders/files that I've looked at in alphabetical >order? >Or, do I have to alphabetize my list of file/folder names myself, >after going through the above procedure? PBCatInfo() currently returns file/folder names in alphabetical order on HFS disks. There is no guarantee that this behavior will be true on disks created by other file systems such as MS-DOS, ISO 9660, High Sierra, Apple II, etc. which can be read by the Macintosh. The behavior may still be there; it just isn't guaranteed. --Brian Bechtel blob@apple.com "My opinion, not Apple's"