• 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
mount() from Cocoa App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: mount() from Cocoa App
      • From: Ben Artin <email@hidden>
    • Re: mount() from Cocoa App
      • From: Quinn <email@hidden>
  • Prev by Date: connect() timeout after server restarts
  • Next by Date: Re: mount() from Cocoa App
  • Previous by thread: Re: connect() timeout after server restarts
  • Next by thread: Re: mount() from Cocoa App
  • Index(es):
    • Date
    • Thread