• 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
Asynchronously mounting a remote file server?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Asynchronously mounting a remote file server?
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Supporting rotation and zoom gestures with autolayout?
  • Next by Date: Re: Supporting rotation and zoom gestures with autolayout?
  • Previous by thread: Re: Supporting rotation and zoom gestures with autolayout?
  • Next by thread: Re: Asynchronously mounting a remote file server?
  • Index(es):
    • Date
    • Thread