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 (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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to