mount() from Cocoa App
mount() from Cocoa App
- Subject: mount() from Cocoa App
- From: Dalton Hamilton <email@hidden>
- Date: Mon, 17 Oct 2005 11:05:35 +0200
Hello.
I need to be able to mount AFP and SMB shares from my Cocoa
application. I've already got an Applescript that can mount both AFP
and SMB shares -- and I can also do it with the osascript terminal
command. However, to use either of these two solutions in my Cocoa
application will require using the system() call and give-up a lot of
control. There may also be a way to integrate both Applescript code
into my Objective C Cocoa code with XCode somehow -- which I'll
investigate if I decide to go the Applescript direction.
My thoughts are that if I go the direction of using the mount()
system call. I think I'll keep a lot of control in the application,
the Application will be faster, and will be able to handle error
cases better. However, the mount() solution will be more difficult.
If I use the sytem() call to execute osascript or some external
Applescript, I lose control and by using "tell Finder" I have a bit
of unpredictability on how the Finder will react if there were
trouble during the mount process.
I guess my real question is, does anyone have any good advice to
offer before I chose one path over the other???
Thanks
Dalton Hamilton
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden