Re: NSOpenPanel & NSFileTypeForHFSTypeCode
Re: NSOpenPanel & NSFileTypeForHFSTypeCode
- Subject: Re: NSOpenPanel & NSFileTypeForHFSTypeCode
- From: Steve Checkoway <email@hidden>
- Date: Thu, 11 Oct 2007 03:34:47 -0700
On Oct 11, 2007, at 3:08 AM, Chris Heimark wrote:
That is a great approach, not unlike mine of wrapping 'duskutil' in
an 'sh'ell to do all my parsing for essentially same information,
witness:
[snip]
QUALIFIED: /Volumes/chessy, UUID:
F9DC83F2-0C29-3F9E-8176-67C62877F365, SPACE: 112.8 MB
So at least two approaches for finding qualified /volumes to present
to user. Thanks for your help!
If you want the other information like uuid and size, you can get all
of that from the io registry. Check out IORegistryExplorer for
everything that's included. The advantage of doing it in code is you
don't have to call an external tool. One problem with calling a tool
is you have to depend on its output not changing.
--
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