Asynchronously mounting a remote file server?
Asynchronously mounting a remote file server?
- Subject: Asynchronously mounting a remote file server?
- From: Rick Mann <email@hidden>
- Date: Thu, 13 Jun 2013 14:17:33 -0700
I'm not sure if this is the right list for this question. If not, please let me know what would be better (macnetworkprog?).
One drawback to aliases on OS X is that if the target item is on a remote server, the system will usually try to automatically mount that server volume whenever the alias is accessed. The problem is that code that accesses the file is almost always synchronous and on the main thread, so whatever it is (app, Finder, prefs pane) doing the accessing blocks for a really long time, especially if the server is not available.
I'd like to be smarter about this in my own apps. Is there a test I can perform before accessing aliases I've stored, or an async way to open/read from files that won't block the main thread?
Thanks.
--
Rick
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden