• 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: Problem with AFP server Notification seek advice.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with AFP server Notification seek advice.


  • Subject: Re: Problem with AFP server Notification seek advice.
  • From: Alastair Houghton <email@hidden>
  • Date: Wed, 7 Jan 2009 14:39:10 +0000

On 6 Jan 2009, at 16:58, Sandro Noel wrote:

when a server is mounted, and it notifies that it is going offline, I get a bonjour notification that the service disappeared,
but so does Finder or OS X, and it dismounts the drives before BM has time to dismount them.
and the annoying point is that it notifies the user that the server just left.

This isn't really a Cocoa question (and this is the Cocoa mailing list). Omni's macosx-dev list or one of Apple's other mailing lists would have been a better place to ask (not least because cocoa-dev is very high traffic and it's hard enough to keep up with it without adding lots of non-Cocoa-related queries as well).


That said, I think you might want to use the DiskArbitration framework here. You probably want to refuse to allow others to unmount the disk, and only allow it to unmount *after* your Bonjour Mounter is finished with it. Take a look at DARegisterDiskUnmountApprovalCallback() in the Xcode docs; to use it, you'll need a DAApprovalSession, which must be scheduled in a run loop.

Kind regards,

Alastair.

--
http://alastairs-place.net



_______________________________________________

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: Problem with AFP server Notification seek advice.
      • From: Sandro Noel <email@hidden>
    • Re: Problem with AFP server Notification seek advice.
      • From: Sandro Noel <email@hidden>
References: 
 >Problem with AFP server Notification seek advice. (From: Sandro Noel <email@hidden>)

  • Prev by Date: Re: feed an NSCharacterSet to numberOfRowsInSection delegate method?
  • Next by Date: Re: Parsing XML from a Https URL using NSXMLParser?
  • Previous by thread: Problem with AFP server Notification seek advice.
  • Next by thread: Re: Problem with AFP server Notification seek advice.
  • Index(es):
    • Date
    • Thread