Re: Detecting a remote volume
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