Re: Icon and Text in NSTableView
Re: Icon and Text in NSTableView
- Subject: Re: Icon and Text in NSTableView
- From: Martin Redington <email@hidden>
- Date: Tue, 6 Apr 2004 18:24:13 +0100
Thanks for the many replies re image and label, and please excuse my
not checking out the examples a little more.
re getting the disk info
I have a three stage process ...
Firstly, I use I getmntinfo to build an initial map of mount points to
device files (and also grabbing some file system type info).
Then I call NSWorkspace getMountedLocalVolumes to grab some further
info via the NSFileManager
Finally, I am using an IOKit call to grab the service from the IOKit
registry, and then walk up the tree to find the driver, so that I
retrieve IO statistics
It took me a while to work it all out, and it does seem unnecessarily
complex, but it works for me :-)
On Apr 5, 2004, at 5:28 PM, Nicko van Someren wrote:
On 5 Apr 2004, at 17:08, Martin Redington wrote:
I have an NSTableView that displays a list of mounted volumes
(it took me a while to work out how to get access to the list of
mounted volumes reliably, but I think that bit is sorted now).
I'm not sure what the answer to your mail question is but can I ask
how you are getting the list of mounted volumes? I was trying to do
this recently and in the end just took the directory listing from
/Volumes, but I suspect there is a better way.
Cheers,
Nicko
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.