• 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
Re: Detecting if /Network/Library is available
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting if /Network/Library is available


  • Subject: Re: Detecting if /Network/Library is available
  • From: Jean-Daniel <email@hidden>
  • Date: Mon, 03 Sep 2018 19:14:13 +0200


> Le 3 sept. 2018 à 19:07, Sandor Szatmari <email@hidden> 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 (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: Detecting if /Network/Library is available
      • From: Sandor Szatmari <email@hidden>
References: 
 >Detecting if /Network/Library is available (From: Sandor Szatmari <email@hidden>)

  • Prev by Date: Detecting if /Network/Library is available
  • Next by Date: Re: Detecting if /Network/Library is available
  • Previous by thread: Detecting if /Network/Library is available
  • Next by thread: Re: Detecting if /Network/Library is available
  • Index(es):
    • Date
    • Thread