> Le 3 sept. 2018 à 19:07, Sandor Szatmari <admin.szatmari....@gmail.com> a 
> écrit :
> 
> I have a problem to solve where it appears I need to detect if 
> /Network/Library is available or not.  
> 
> Basically, I’d like to handle situation where I need to copy items from 
> /Network/Library at times when it’s it’s not yet available but may be 
> available soon…  i.e. at boot, or after the Network cycles, etc.
> 
> There’s a couple of strategies I can think of:
> 
> Keep failing the copy until it works or a default time out expires
> Notification of availability (Preferred, but I can’t find a way to do this)
> Quit and retry later.
> 
> Any suggestion/guidance anyone can provide on this?

I’m not familiar with /Network/Library, but if this is a standard directory, 
you can wait for it to be created using file system event (I think there is a 
node dispatch source for that), and if this is a mount point, you can use disk 
arbitration framework to get notification.

_______________________________________________

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