• 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: Sandro Noel <email@hidden>
  • Date: Wed, 07 Jan 2009 16:59:33 -0500

Is there any documentation available for this framework besides the Header files description ?

Thanks you.
Sandro Noel.


On 7-Jan-09, at 9:39 AM, Alastair Houghton wrote:

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


References: 
 >Problem with AFP server Notification seek advice. (From: Sandro Noel <email@hidden>)
 >Re: Problem with AFP server Notification seek advice. (From: Alastair Houghton <email@hidden>)

  • Prev by Date: Can I call unbind: in finalize? Is it thread safe?
  • Next by Date: MEETING: Chicago CocoaHeads / CAWUG Tuesday Jan. 13th
  • Previous by thread: Re: Problem with AFP server Notification seek advice.
  • Next by thread: NSAppleScript returns wrong result on multiple Safari windows, applescript editor work
  • Index(es):
    • Date
    • Thread