• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting Name of root Volume
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Getting Name of root Volume
      • From: Brian Hill <email@hidden>
References: 
 >Getting Name of root Volume (From: Guy Winslow <email@hidden>)

  • Prev by Date: Re: 2 questions and 1 idea
  • Next by Date: Re: 2 questions and 1 idea
  • Previous by thread: Getting Name of root Volume
  • Next by thread: Re: Getting Name of root Volume
  • Index(es):
    • Date
    • Thread