Re: Getting Name of root Volume
Re: Getting Name of root Volume
- Subject: Re: Getting Name of root Volume
- From: Eric Peyton <email@hidden>
- Date: Fri, 1 Jun 2001 13:37:34 -0500
I do not believe it's possible using NSFileManager.
There are other ways of doing it, generally involving Carbon file
manager calls. I would start by looking at the carbon calls
FSRef fsRef;
FSVolumeInfo theVolInfo;
FSCatalogInfo info;
FSPathMakeRef("/", &fsRef, NULL); to get an fsRef to "/"
FSGetCatalogInfo(&fsRef, kFSCatInfoVolume, &info, NULL, NULL, NULL);
obviously - this code doesn't get you everything you need
you will probably need to use something like
extern void
PBGetVolumeInfoAsync(FSVolumeInfoParam * paramBlock);
And pass in the FSVolumeRefNum you get out of the FSCatalogInfo up
above.
I am by no means a carbon expert of ANY sort, though inspection of
the Files.h in CarbonCore should help you out tremendously here.
Eric
On Friday, June 1, 2001, at 11:28 AM, Guy Winslow wrote:
Do's any one now if its passable to get name of root volume using
"NSFileManager" or is there another way that's eluding me.
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev