I am trying to make a NSSearchField taking up the whole width of a toolbar in a NSWindowController.
- I created a new NSWindowController using Xcode storyboard, add a toolbar to it, when add search field to the toolbar.
- I drag the search field from allowed toolbar items to default toolbar items
- Set toolbar item's max width to a large number say 1000
I build the app and run. The search field shrinks when window width shrinks, but does not expand beyond a certain width when window width expands.
The question is how to make search field expand and take up all remaining space of the toolbar?