Re: Mounting AppleShare volumes
Re: Mounting AppleShare volumes
- Subject: Re: Mounting AppleShare volumes
- From: Chris Ridd <email@hidden>
- Date: Mon, 05 Aug 2002 17:50:53 +0100
David Feldman <email@hidden> wrote:
>
Sorry for the barrage of questions...unfortunately, I find that the Cocoa
>
documentation is great when you already know which class you need and not
>
so great when you just need to know how to do something.
>
>
Anyway, first question: Is there a better way to mount a remote volume via
>
AppleShare than a system() call to mount_afp?
It is dangerous to use the system() call correctly as the string you pass
undergoes shell expansion.
There's probably a system call to do this, but I don't know what it is from
the top of my head. Try "man mount".
>
Second question: If so, is there any way to interrupt that call as it's in
>
progress? (i.e. user cancels)
If you have to run mount_afp, then take a look at NSTask. It has an
interrupt method :-)
Cheers,
Chris
_______________________________________________
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.