Re: Difference between dvd and dmg
Re: Difference between dvd and dmg
- Subject: Re: Difference between dvd and dmg
- From: j o a r <email@hidden>
- Date: Sun, 23 Oct 2005 22:26:50 +0200
On 23 okt 2005, at 22.10, Gerriet M. Denkmann wrote:
I looked up kIOMediaSizeKey:
<snip>
So maybe "Size" is not really what I am interested in.
Yes, you're absolutely right - I ment to say
kIOMediaPreferredBlockSizeKey...
Is there a "fairly easy" way to get the appropriate IOKit
dictionary from a bsd-name (like /dev/rdisk1s2) ?
You might start here:
<http://developer.apple.com/documentation/DeviceDrivers/Conceptual/
WorkingWStorage/index.html>
<http://developer.apple.com/documentation/Darwin/Reference/
KernelIOKitFramework/IOMedia/index.html>
You can adopt the sample code on the first page to return generic
kIOMediaClass devices, and then iterate over the returned items until
you find the BSD device name that you got at hand.
There might also be some nicer way to do it that I don't know about.
Check the documentation, and the sample code, provided by Apple. And
Google, never forget Google...
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden