• 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
Mounting SMB Servers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mounting SMB Servers


  • Subject: Mounting SMB Servers
  • From: Ryan Britton <email@hidden>
  • Date: Wed, 31 Aug 2005 17:56:11 -0700

I have two approaches that work for mounting SMB servers. One is using NSTask to execute mount_smbfs and the other is using NSAppleScript to execute a mounting script generated on the fly. Both of these have their drawbacks:

mount_smbfs via NSTask:
Does not play nice with Finder's sidebar. Leaves artifacts long after unmounting.
Requires a more complex processor method in order to ensure arguments are properly escaped.


NSAppleScript:
Provides no option that I can see for timing out. If it can't resolve the server, then the main thread of my program hangs.



Is there a better way to go about this? The server is arbitrary. There is nothing guaranteed about it. Is using NSTask to pipe the generated script into osascript and a NSTimer instance the only way to get timing out functionality?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Prev by Date: Re: NSTableView Scrollbars are very quirky on 10.3!
  • Previous by thread: Out of bounds exception from NSTextView
  • Index(es):
    • Date
    • Thread