Re: NSOpenPanel & NSFileTypeForHFSTypeCode
Re: NSOpenPanel & NSFileTypeForHFSTypeCode
- Subject: Re: NSOpenPanel & NSFileTypeForHFSTypeCode
- From: Steve Checkoway <email@hidden>
- Date: Thu, 11 Oct 2007 16:48:32 -0700
On Oct 11, 2007, at 9:07 AM, Chris Heimark wrote:
I tried the following addition to your code:
CFTypeRef cftr = IORegistryEntryCreateCFProperty (entry, CFSTR
(kIOMediaUUIDKey), kCFAllocatorDefault, 0);
[snip]
cftr comes back NULL. When I trace the very bizarre path using IO
Explorer, it turns out "UUID" is not registered. I tried the
kIOMediaSizeKey as well - and oddly enough, it does not work either
- returning NULL, though it is definitely in the IO Registry path.
Puzzled in Paoli.
As you say, UUID doesn't seem to be anywhere in the path. Searching in
IORegistryExplorer doesn't give me any uuid so I don't know where it's
getting that value. In fact, searching the registry for the uuid of my
hard drive as returned by diskutil doesn't show anything so it's not
showing up there anywhere so you'll have to get that elsewhere.
As for size, it works for me. You need to call
IORegistryEntryCreateCFProperty() on entry, as you did, but you need
to do it before you release it.
This has probably gone far afield for cocoa-dev. Something like the
usb list would probably be better.
--
Steve Checkoway
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden