Re: Figuring out mounted path from volume ref num
Re: Figuring out mounted path from volume ref num
- Subject: Re: Figuring out mounted path from volume ref num
- From: Daniel Jalkut <email@hidden>
- Date: Fri, 16 May 2003 17:27:46 -0700
Since you're using the NSWorkspaceDidUnmountNotification to listen for
unmounts, why don't you simply listen for mounts that way as well? You
should still get the notification, even if you are the one causing the
mount. Then you can stash the path exactly as the NS notification API
sees it.
But to answer your question: one way to get the mount path of a volume,
given its vRefNum, is with the Carbon FSGetVolumeInfo routine. Pass
kFSVolInfoNone for the "whichInfo" parameter, and NULL for almost
everything but "rootDirectory" . When you get the FSRef for the root
directory, you can use FSRefMakePath to get a full path C string.
Daniel
On Friday, May 16, 2003, at 04:13 PM, Neil Rhodes wrote:
FSMountServerVolumeAsync
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.