Re: external devices' info
Re: external devices' info
- Subject: Re: external devices' info
- From: Chris Parker <email@hidden>
- Date: Mon, 11 Dec 2006 11:37:32 -0800
On Dec 11, 2006, at 11:22 AM, Jerry Krinock wrote:
on 06/12/11 9:00, Gianluca Elia at email@hidden wrote:
Hi i'm new to this mailing list and to cocoa too.
I'm looking for mounted devices' infos such as capacity and free
space...how can i get them?
With NSWorkspace I've found mounting point and with NSFileManager
I've
found device's contents dimension, but i can't go further.
I would look into Carbon documentation for CoreFoundation functions,
which
usually go much deeper into stuff like this than Cocoa does.
CF doesn't do anything with filesystems.
Depending on the level of granularity you're looking for, statfs(2)
may give you more of the information you're looking for. The
DiskArbitration framework (available in 10.4) will give you
notifications of disk mounts, etc., as well as also provide more info
on mounted volumes.
.chris
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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