• 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: Programmatic mount of AFP volumes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatic mount of AFP volumes?


  • Subject: Re: Programmatic mount of AFP volumes?
  • From: Darrell Walisser <email@hidden>
  • Date: Wed, 24 Jul 2002 09:48:53 -0500

On Tuesday, July 23, 2002, at 10:49 PM, cocoa-dev-
email@hidden wrote:

Message: 13
Date: Tue, 23 Jul 2002 23:26:34 -0400
Subject: Programmatic mount of AFP volumes?
From: Laurent Daudelin <email@hidden>
To: Cocoa Developer <email@hidden>

I've searched the archive and found some discussion a while ago about how to
mount an iDisk volume. I would like to be able to programmatically mount AFP
volumes, not only iDisk ones
[...]


So, what are my choices?

Here is everything I can think of. I've only tried the MoreFiles method but I think the others will work too.

1. MoreFilesX. You'll have to use the Keychain API (is there one?) yourself though. MoreFilesX uses the same process that is documented in the technote "Programmatic Mounting of AppleShare Volumes" (http://developer.apple.com/technotes/tn/tn1111.html).

2. AppleShare Client API (AppleShareClient.framework). You'll also have to code keychain support yourself. There are some docs for this API in (http://developer.apple.com/techpubs/macos8/pdf/ASClient.pdf)

3. URLAccess Manager. Pass it a URL of the form "afp://login:password@host/volume_name" This will automatically support the keychain, since it should go through the same interface that the Finder uses when you hit command-K.

4. AppleShare Client Core API (AppleShareClientCore.framework) this uses an URL to do a low-level AFP mount. This doesn't have keychain support built-in.

5. fork() and exec(). You can use these system calls to invoke /sbin/mount_afp with the right parameters. Probably not a good choice, but still possible.


The easiest way seems to use option 3. If you want more control over the mounting process, use option 2.
_______________________________________________
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.
  • Prev by Date: Sherlock indexing of Frameworks
  • Next by Date: Re: Need help : Multiple views in NSDrawer
  • Previous by thread: Programmatic mount of AFP volumes?
  • Next by thread: GCC 3.0 Bug
  • Index(es):
    • Date
    • Thread