AFPMountURL in OS X?
AFPMountURL in OS X?
- Subject: AFPMountURL in OS X?
- From: Steve Herman <email@hidden>
- Date: Mon, 2 Jul 2001 16:30:33 -0500
Can anyone provide some info on how to make AFPMountURL work. Or is is
broken in OS X?
I've got a valid URL, as I can paste it into Finder's "Connect to
Server..." address field and the volume mounts just fine. But when I call
AFPMountURL it either fails or acts strangely.
- I'm not sure what to provide for the inMountPoint parameter. I've tried
various strings and the only thing that (sort of) works is an empty string.
Everything else seems to fail with an error 1 or 2. An empty string for the
mount point mounts the volume, but the volume cannot be unmounted without
rebooting. Attempting to drag the volume to the Trash or use Finder's
"File/Eject" menu item returns an error that the "action cannot be
completed because the disk is in use".
- I've been passing zeros for inMountFlags and inAltFlags... maybe I need
to use something different? And what's the difference between "mount
flags" and "alternate mount flags" anyway?
FWIW, this is primarily a Cocoa app calling into the Carbon APIs.
Thanks,
Steve
--
+------------------------------------------------+
| Steve Herman |
| Macintosh Software Development and Support |
| OAO Corporation / NASA-ODIN |
| 102 Research Blvd, Bldg 2 |
| Madison, AL 35758 (voice) 256 319-2869 |
| email@hidden (fax) 256 319-2984 |
+------------------------------------------------+