Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disabling auto-mounting of CDROM



Hey Shayne,

You can use a DADiskMountApprovalCallback to prevent a mount.

Dan

On 21 Nov 2008, at 9:27 AM, Shayne Wissler wrote:

A followup question on your suggestion: Wouldn't it cause a race condition? If my program did a DADDiskClaim, what if it didn't happen to run in time to grab the disk before the system did?


Shayne Wissler

On Thu, Nov 20, 2008 at 8:49 PM, <email@hidden> wrote:
On Thu, November 20, 2008 7:29 pm, Shayne Wissler wrote:
> Hello,
>
> I'm trying to get OSX to stop automounting the CDROM. This is important
> for
> an application I'm writing that uses cdrecord--the automounting conflicts
> with cdrecord, and I don't need automounting.
>
> The first thing I tried was removing disk arbitration:

If you want your application to work on systems other than your own,
removing parts of the system isn't a good idea.

I suggest looking at the public DiskArbitration.framework.  The
documentation is somewhat sparse, but the source is open and DADiskClaim()
may do what you need to prevent Disk Arbitration from doing its thing when
you insert a blank disk.


-Soren


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden

References: 
 >Disabling auto-mounting of CDROM (From: "Shayne Wissler" <email@hidden>)
 >Re: Disabling auto-mounting of CDROM (From: email@hidden)
 >Re: Disabling auto-mounting of CDROM (From: "Shayne Wissler" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.