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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to