Where can I find the Cocoa Folding Panel control in Interface Builder?

I am trying to add a collapsible panel to a panel added in Interface Builder, similar to the one found in Office 2008 and Xcode.

This is a collapsible panel for those who do not know this:

Foldable OS X panel http://grab.by/3Hqv

Any idea how I can add this to my project? Google did not help much.

+4
source share
2 answers

This is most often called the “disclosure view” or “disclosure panel” and usually should have an intelligent container appearance (which grows / shrinks / scrolls correctly with several expandable disclosure areas). There is no such control in the API. Most developers roll back their own, while some use third-party open source.

Omni Frameworks have one such control that works very well (including tear-off panels, etc., if I remember correctly). Disadvantage: this is a large structure and has many other things in it.

InspectorKit is different. It is more focused (only the control itself and the IB module), but the last incarnation I tested had several problems with the user interface with the Interface Builder plugin.

+6
source

I also wrote a structure to handle this: SFBInspectors

+3
source

Source: https://habr.com/ru/post/1306705/


All Articles