Display all currently mounted volumes in a list with Cocoa

Discussion in 'Mac Programming' started by Playgear, Aug 30, 2014.

  1. Playgear macrumors regular

    Apr 10, 2010
    Hi all,

    Trying to achieve a similar view as this:


    I'm very new to Objective-C (I probably should have held out for Swift), and am not familiar with all UI elements yet, etc.

    I think it's a NSTableView, but I'm not sure. So far I've managed to get a list of mounts in a NSMutableArray, but I'm unsure as to how to populate the NSTableView with elements of the array.

    Any tips?

  2. LinusR macrumors regular


    Jan 3, 2011
    Have a look at bindings, they are the easiest way to populate an NSTableView, especially those fairly simple ones.
  3. briloronmacrumo macrumors 6502


    Jan 25, 2008
    Review some tutorials on basic tableview operation

    If you're new to tableviews, learning the basics without bindings will give you a better understanding of their operation. I would use the the standard data source delegates the tableview class provides. Maybe review lessons 13, 14, 15 in Luca's series ( these lessons are an introduction to tableviews )

    to see the basics.You might decide a view-based tableview is better-suited and there are some tutorials there on view-based tableviews ( versus the standard cell-based ).

Share This Page