Мне нужен макет, похожий на Inspectors IB, где есть несколько расширяемых разделов, расширенных треугольниками раскрытия, и все они содержатся в прокрутке.
Если бы была нужна только одна расширяемая секция, я бы уже был там: я поместил расширяемую секцию в NSBox, дал коробке и всему, что над ней, верхнюю распорку, но не нижнюю, а всему, что под ней, дал нижнюю распорку, но не верхнюю. распорка Затем я настроил действие треугольника раскрытия, чтобы показать/скрыть поле и настроить размер кадра представления документа в прокрутке.
Но, похоже, нет способа установить распорки для нескольких блоков. Либо закрытие треугольников раскрытия оставляет зазоры, либо коробки скользят друг по другу.
Я взглянул на NSOutlineView, но это таблица; у него не может быть подпредставлений, таких как поля со списком и кнопки. (Или, может быть, это возможно, если я создам пользовательские ячейки, чего я еще не делал, но я подозреваю, что они не подходят для полнофункционального макета.)
Может ли кто-нибудь указать мне в правильном направлении?