• 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: Detecting a remote volume
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting a remote volume


  • Subject: Re: Detecting a remote volume
  • From: Knut Lorenzen <email@hidden>
  • Date: Wed, 4 Aug 2010 15:27:51 +0200

Am 04.08.2010 um 15:10 schrieb Mark Fleming:

> Here is what I use for:
> - detecting WebDAV Volumes... can change the -t to afp to list AFP volumes.
> - for mounting and unmounting WebDAV volumes.

<...>

Thanks Mark. I have found an even easier way to reach my goal:

NSWorkspace *workspace = [NSWorkspace sharedWorkspace];
NSURL *server = [[NSURL alloc] initWithString: @"afp://LeoServer.local/Mailbackup"];
[workspace openURL: server];

If the user is not connected already, Finder asks for the password, mounts the folder and sends an NSWorkspaceDidMountNotification to the app.

Knut

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Detecting a remote volume (From: Mark Fleming <email@hidden>)

  • Prev by Date: Re: Detecting a remote volume
  • Next by Date: confstr + [NSFileManager stringWithFileSystemRepresentation:length:] crash on Leopard
  • Previous by thread: Re: Detecting a remote volume
  • Next by thread: NSPanel, changing the look of the min button
  • Index(es):
    • Date
    • Thread