• 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: Mounting AFP Volume using Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mounting AFP Volume using Cocoa


  • Subject: Re: Mounting AFP Volume using Cocoa
  • From: Bill Cheeseman <email@hidden>
  • Date: Fri, 18 Apr 2008 06:32:19 -0400
  • Thread-topic: Mounting AFP Volume using Cocoa

on 2008-04-18 2:23 AM, Jens Alfke at email@hidden wrote:

> On 17 Apr '08, at 1:19 PM, JanakiRam wrote:
>
>>   Is there any cocoa way to mount a volume silently by passing the
>> user name and password.
>
> There is no Objective-C API; you'll have to use either CoreServices or
> POSIX APIs.
> I would look at the FSVolumeMount function.

Well, maybe this is stretching the "any cocoa way" requirement, but I
believe you could use NSAppleScript to run a simple AppleScript command
('mount volume', which takes optional user name and password parameters, or
'do shell script' with appropriate shell commands).

Instead of NSAppleScript you could use OSAKit, but it isn't technically
"Cocoa" by some definitions, although it is an Objective-C API.

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com

PreFab Software - www.prefabsoftware.com


_______________________________________________

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: Mounting AFP Volume using Cocoa (From: Jens Alfke <email@hidden>)

  • Prev by Date: running out of NSPipes
  • Next by Date: how to get what tells fileURL has been changed by others
  • Previous by thread: Re: Mounting AFP Volume using Cocoa
  • Next by thread: Re: Mounting AFP Volume using Cocoa
  • Index(es):
    • Date
    • Thread