zorgiepoo / Bit-Slicer

Universal game trainer for macOS
Other
902 stars 75 forks source link

Add closable section of variables #82

Open wesselvdv opened 1 year ago

wesselvdv commented 1 year ago

I think it would be nice to be able to define groups of variables and be able to open or close these groups much like cheat engine does.

wesselvdv commented 1 year ago

I did some digging into this, and this is not trivial unfortunately. There is a builtin Cocoa class that can support this: NSOutlineView which is a subclass of NSTableView, but that's as far as the good news goes. The bad news is the NSOutlineView is way more complex than the current NSTableView with NSCell, and therefore requires some serious changes to the search document nib, associated files and probably variables storing in documents.

Alternative:

https://blog.krzyzanowskim.com/2015/05/29/lets-talk-about-sections-for-nstableview/

Simple example showing NSOutlineView:

https://github.com/besi/mac-quickies