Re: identifying optical media
Well, yes :D What you want to investigate is the IOKit Registry. I don't have the sample code on this machine, please have a look at this: https://developer.apple.com/library/mac/#documentation/DeviceDrivers/Concept... If you encounter problems let me know. I have the sample code somewhere Alex Am 04.02.2012 um 10:25 schrieb Alex Reynolds:
I'd like to discern read-only media from optical media, as well as get information about the optical media.
Basically, I am looking for information about the programmatic equivalent of running "diskutil info /Volume/XYZ" and getting "Optical Drive" and/or "Optical Media" entries when a CD or DVD is inserted, which are not visible for other mounted media.
Does this help clarify?
Thanks, Alex
On Feb 4, 2012, at 12:45 AM, Alexander von Below wrote:
Maybe ... what is really your question? Is the goal to display "Hey, this is an optical disc", or are you looking to achieve a different goal?
Knowing what you want to do with this information helps to give you a better answer
Alex D Am 04.02.2012 um 00:42 schrieb Alex Reynolds:
Is there a programmatic method by which one can determine if a mounted disk is optical, e.g., CD or DVD?
Thanks, Alex
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-dev/below%40mac.com
This email sent to below@mac.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.app... This email sent to site_archiver@lists.apple.com
participants (1)
-
Alexander von Below