• 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: Figuring out mounted path from volume ref num
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Figuring out mounted path from volume ref num (From: Neil Rhodes <email@hidden>)

  • Prev by Date: Re: OT: WWDC
  • Next by Date: Re: OT: WWDC (DVD's)
  • Previous by thread: Figuring out mounted path from volume ref num
  • Next by thread: full-screen window?
  • Index(es):
    • Date
    • Thread