The default width of NSSearchToolbarItem
is way too large. I want it to be similar to the Notes app.
Is there an official way to do this?
The control has a property preferredWidthForSearchField
, but this has no effect, which could also be one of the many Big Sur bugs.
The classic but deprecated minSize
and maxSize
settings seems to work, but then the control loses the ability to automatically resize itself according the available toolbar space.
Maybe not the best way, but this seems to work: