Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

RossOliver

macrumors regular
Original poster
Nov 6, 2006
157
0
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
 

Attachments

  • screen.png
    screen.png
    35.5 KB · Views: 217
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.
 
Last edited:
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
 
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.
 
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.

That worked perfectly - cheers!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.