danielpi / NSOutlineViewInSwift

A project to help me understand what is required to provide data for an NSOutlineView or Source List control
MIT License
59 stars 5 forks source link

Almost perfect for what i need #5

Closed xs6615 closed 9 years ago

xs6615 commented 9 years ago

This is the perfect solution for me, but I need help with two changes:

Thank you David

danielpi commented 9 years ago

Hey David,

Have a look at the latest update. In the view did load method of the ViewController the Fauna and Flora cells are now expanded, such that they are open on launch. Also at the bottom of the ViewController there is a delegate method for shouldCollapseItem which is set to stop the Fauna cell from collapsing (This could be expanded to all Life objects if needed).

The Show/Hide buttons still appear. I think you will need to provide your own view for the header cells in order to customise this. One of my other projects does something like this for a table view. Here is a link https://github.com/danielpi/PSoC-4-BLE-Experiments/tree/master/Project%20001%20FindMe/Mac

Hope this helps. Daniel.

xs6615 commented 9 years ago

Daniel, This is perfect. Thank you very much

danielpi commented 9 years ago

No worries, Glad to help.