FROM : Eric Peyton
DATE : Fri Nov 19 23:39:33 2004
On Nov 19, 2004, at 4:12 PM, Avi Cherry wrote:
> Two semi-related questions here:
>
> 1) Is it possible to force OSX to check for the presence of a recorded
> CD? I'm using the open-source cdrtools utilities for doing CD burning
> on a custom application and after a CD is burned, the only way I can
> get the OS to recognize the presence of a disk in the drive is by
> ejecting the tray and re-loading it.
Use disktool -r to refresh disk arbitration. There is no public API
for this on Panther.
>
> 2) How can you temporarily prevent OSX from mounting all volumes on a
> newly-inserted disk? I need this behavior for verifying the contents
> of the disk.
>
There is no public API for this on Panther.
You can check out DiskArbitration from Darwin and see how this is done.
Eric
>
> I imagine that both of these things are possible, since I've seen this
> behavior in other programs before. I suspect both may involve the
> Disk Arbitration framework, but it's a private framework with no
> documentation.
>
> Any ideas?
>
> Thanks.
>
> _______________________________________________
> MacOSX-dev mailing list
> <email_removed>
> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>
>
DATE : Fri Nov 19 23:39:33 2004
On Nov 19, 2004, at 4:12 PM, Avi Cherry wrote:
> Two semi-related questions here:
>
> 1) Is it possible to force OSX to check for the presence of a recorded
> CD? I'm using the open-source cdrtools utilities for doing CD burning
> on a custom application and after a CD is burned, the only way I can
> get the OS to recognize the presence of a disk in the drive is by
> ejecting the tray and re-loading it.
Use disktool -r to refresh disk arbitration. There is no public API
for this on Panther.
>
> 2) How can you temporarily prevent OSX from mounting all volumes on a
> newly-inserted disk? I need this behavior for verifying the contents
> of the disk.
>
There is no public API for this on Panther.
You can check out DiskArbitration from Darwin and see how this is done.
Eric
>
> I imagine that both of these things are possible, since I've seen this
> behavior in other programs before. I suspect both may involve the
> Disk Arbitration framework, but it's a private framework with no
> documentation.
>
> Any ideas?
>
> Thanks.
>
> _______________________________________________
> MacOSX-dev mailing list
> <email_removed>
> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>
>
| Related mails | Author | Date |
|---|---|---|
| Avi Cherry | Nov 19, 23:12 | |
| Eric Peyton | Nov 19, 23:39 |






Cocoa mail archive

