• 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
SMB and AFP mounts using FSMountServerVolumeAsync
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SMB and AFP mounts using FSMountServerVolumeAsync


  • Subject: SMB and AFP mounts using FSMountServerVolumeAsync
  • From: Dalton Hamilton <email@hidden>
  • Date: Thu, 27 Oct 2005 10:11:58 +0200


I am using FSMountServerVolumeAsync and FSUnmountVolumeSync to mount and unmount smb and afp shares.


QUESTION 1:
However, I don't see a way to detect if the user has mounted the shared volume manually. If the user has mounted the share manually and then he runs my application and clicks on the button to mount the same shared volume, my application calls FSMountServerVolumeAsync and a second volume (icon is a Globe) appears on the desktop for the same shared volume. However, If the volume was mounted by my application and then the user attempts to mount the volume again, the applications FSMountServerVolumeAsync operation provides an error code (to my callback function) of volOnLinErr -- which means Volume is already online. I don't see the connection. Why doesn't the FSMountServerVolumeAsync operation give the same volOnLinErr when the volume has been mounted already manually???



QUESTION 2:
Likewise, I'd like to be able to un-mount manually mounted volumes. Today, when my application mounts a shared volume, I save the volume reference number. I pass this volume reference number to the FSUnmountVolumeSync call and it un-mounts the volume. How do I detect the manually mounted share and get its volume reference number???


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Are screensavers for OS X made in Cocoa or Java?
  • Next by Date: Removing objects from the array controller but not from the persistent store (Newbie)
  • Previous by thread: how can my cocoa app add photos in to the iPod photo
  • Next by thread: Removing objects from the array controller but not from the persistent store (Newbie)
  • Index(es):
    • Date
    • Thread