Vertical file/folder directory view

Discussion in 'Mac Programming' started by RossOliver, Mar 26, 2011.

  1. RossOliver macrumors regular

    Joined:
    Nov 6, 2006
    #1
    Hello,

    I am wondering how to go about making a library view that displays headings, folders/sub folders and files vertically (ultimately with the ability to add new headings, folders and files), such as in the example below of XCode's project manager view (see attachment)

    If someone could help me out with which components would best make up this UI I would appreciate it! None of the standard cocoa UI components appear to fit the bill - even though this type of library view is used in many applications...

    Thanks for your time,

    -Ross
     

    Attached Files:

  2. rossipoo, Mar 26, 2011
    Last edited: Mar 26, 2011

    rossipoo macrumors regular

    Joined:
    Jun 7, 2009
    #2
    That is a tree view, NSTreeView. Is that what you mean?

    --

    Not TreeView, sorry. NSOutlineView, probably combined with a TreeController. Apple's good at customizing stuff to look really good, but that's what it is in essence.
     
  3. RossOliver thread starter macrumors regular

    Joined:
    Nov 6, 2006
    #3
    Thanks for the reply.

    NSOutlineView does seem to be the closest match, however in interface builder it appears to be paired with an NSTableHeaderView - if I set this to hidden, it doesn't appear but the NSOutlineView doesn't take over its space; is there any way to hide/remove the NSTableHeaderView so the NSOutlineView expands into were the NSTableHeaderView was previously drawn?

    Many thanks,

    -Ross
     
  4. rossipoo macrumors regular

    Joined:
    Jun 7, 2009
    #4
    I haven't made a whole application, but in interface builder it seems possible to remove the header. Select the OutlineView (requires two clicks, since it's inside a ScrollView), and then uncheck "headers' in the attributes inspector.
     
  5. RossOliver thread starter macrumors regular

    Joined:
    Nov 6, 2006
    #5
    That worked perfectly - cheers!
     

Share This Page