• 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: Icon and Text in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Icon and Text in NSTableView (From: Martin Redington <email@hidden>)
 >Re: Icon and Text in NSTableView (From: Nicko van Someren <email@hidden>)

  • Prev by Date: Re: Lost IBOutlet.
  • Next by Date: Re: Scrolling Back Terminal Window
  • Previous by thread: Re: Icon and Text in NSTableView
  • Next by thread: Re: Icon and Text in NSTableView
  • Index(es):
    • Date
    • Thread