• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSOpenPanel & NSFileTypeForHFSTypeCode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSOpenPanel & NSFileTypeForHFSTypeCode (From: Chris Heimark <email@hidden>)
 >Re: NSOpenPanel & NSFileTypeForHFSTypeCode (From: Corbin Dunn <email@hidden>)
 >Re: NSOpenPanel & NSFileTypeForHFSTypeCode (From: John Stiles <email@hidden>)
 >Re: NSOpenPanel & NSFileTypeForHFSTypeCode (From: Chris Heimark <email@hidden>)
 >Re: NSOpenPanel & NSFileTypeForHFSTypeCode (From: Steve Checkoway <email@hidden>)
 >Re: NSOpenPanel & NSFileTypeForHFSTypeCode (From: Chris Heimark <email@hidden>)
 >Re: NSOpenPanel & NSFileTypeForHFSTypeCode (From: Steve Checkoway <email@hidden>)
 >Re: NSOpenPanel & NSFileTypeForHFSTypeCode (From: Chris Heimark <email@hidden>)
 >Re: NSOpenPanel & NSFileTypeForHFSTypeCode (From: Steve Checkoway <email@hidden>)
 >Re: NSOpenPanel & NSFileTypeForHFSTypeCode (From: Chris Heimark <email@hidden>)
 >Re: NSOpenPanel & NSFileTypeForHFSTypeCode (From: Steve Checkoway <email@hidden>)
 >Re: NSOpenPanel & NSFileTypeForHFSTypeCode (From: Chris Heimark <email@hidden>)

  • Prev by Date: Re: Getting a NSMenuItem to respond to two different key equivalents
  • Next by Date: Re: Reading a binary file format?
  • Previous by thread: Re: NSOpenPanel & NSFileTypeForHFSTypeCode
  • Next by thread: Re: NSOpenPanel & NSFileTypeForHFSTypeCode
  • Index(es):
    • Date
    • Thread