Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference Between NSOutlineView and NSTableView

Tell me the difference between NSOutlineView and view based NSTableview as I know view based table view may not contain tree controller and NSOutlineView can have tree controller object

is it true or wrong

like image 652
Snehal Tanawade Avatar asked Aug 22 '13 10:08

Snehal Tanawade


1 Answers

Apple says it best:

NSOutlineView is a subclass of NSTableView that lets the user expand or collapse rows that contain hierarchical data. As in a table view, an outline view displays data for a set of related items, with rows representing individual items and columns representing the attributes of those items. Unlike a table view, items in an outline view are not in a flat list, but rather may be organized in a hierarchy, like files and folders on a hard drive, or managers and employees in an organization.

So, yes, what you say is true.

like image 101
trojanfoe Avatar answered Oct 22 '22 08:10

trojanfoe