Re: Mounting AFP Volume using Cocoa

2008-04-21 Thread Bill Monk
On Apr 19, 2008, on Mon, 21 Apr 2008 10:06:47 +0530, JanakiRam wrote: This code works fine , but when i try to mount another volume/ account on the same server , this code doesn't seem to work.I'm always getting -43 error.If i unmount the earlier volume/account on the same server then i'm

Re: Mounting AFP Volume using Cocoa

2008-04-20 Thread Jens Alfke
On 20 Apr '08, at 9:36 PM, JanakiRam wrote: this code doesn't seem to work for mounting multiple volumes/ accounts.I'm always getting -43 error.If i unmount the earlier volume/account on the same server then i'm able to mount another volume on the same server. I don't think you can log i

Re: Mounting AFP Volume using Cocoa

2008-04-20 Thread JanakiRam
Hi Bill, Thanks for your response. This code works fine , but when i try to mount a single volume/account on the same server , this code doesn't seem to work for mounting multiple volumes/accounts.I'm always getting -43 error.If i unmount the earlier volume/account on the same server then

Re: Mounting AFP Volume using Cocoa

2008-04-18 Thread Bill Monk
On Apr 18, 2008, at 2:59 PM, Randall Meadows wrote: On Apr 18, 2008, at 1:48 PM, Bill Monk wrote: On Apr 18, 2008, at 2:03 PM, Jens Alfke <[EMAIL PROTECTED]> wrote: I haven't used any of those functions. How about reading the documentation? Just type "FSVolumeMount" into Xcode's documentatio

Re: Mounting AFP Volume using Cocoa

2008-04-18 Thread Bill Monk
On Apr 18, 2008, at 2:03 PM, Jens Alfke <[EMAIL PROTECTED]> wrote: I haven't used any of those functions. How about reading the documentation? Just type "FSVolumeMount" into Xcode's documentation viewer. Well, um, that won't help him much, because there is no such function. Something like th

Re: Mounting AFP Volume using Cocoa

2008-04-18 Thread Jens Alfke
On 18 Apr '08, at 4:52 AM, JanakiRam wrote: Can you provide some pointers on using FSVolumeMount API or some CoreServices API. I haven't used any of those functions. How about reading the documentation? Just type "FSVolumeMount" into Xcode's documentation viewer. If no API is available

Re: Mounting AFP Volume using Cocoa

2008-04-18 Thread Mike Abdullah
On 18 Apr 2008, at 12:52, JanakiRam wrote: Hi Jens, Thanks for the reply. Can you provide some pointers on using FSVolumeMount API or some CoreServices API. If no API is available , then how Finder is able to connect to afp volume using Connect to Server (Cmd+K). Any pointers on these is g

Re: Mounting AFP Volume using Cocoa

2008-04-18 Thread JanakiRam
Hi Jens, Thanks for the reply. Can you provide some pointers on using FSVolumeMount API or some CoreServices API. If no API is available , then how Finder is able to connect to afp volume using Connect to Server (Cmd+K). Any pointers on these is greatly appreciated. -JanakiRam. On Fri, Apr 18,

Re: Mounting AFP Volume using Cocoa

2008-04-18 Thread Bill Cheeseman
on 2008-04-18 2:23 AM, Jens Alfke at [EMAIL PROTECTED] 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.

Re: Mounting AFP Volume using Cocoa

2008-04-17 Thread Jens Alfke
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. —Jens smime.p7s Descripti

Mounting AFP Volume using Cocoa

2008-04-17 Thread JanakiRam
Hi All, I'm working on a cocoa application which needs to mount a afp volume. I've found a way to mount a volume using AppleScript with Finder object. Example using mount volume command. Is there any cocoa way to mount a volume silently by passing the user name and password. Please h