Re: Problem with AFP server Notification seek advice.
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 09:47:47 -0500
Thank you so much !!
it's really appreciated.
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