I'm trying to adopt to the new toolbar layout in Big Sur. I fill my toolbar programmatically but it is instantiated in Interface Builder. I switched to the new unified style which seems work fine so far, the extended separators work too. But I cannot get the title to show up... It's set in IB, Show Title Bar is enabled too. It even shows up in the preview in IB. But when I run my app it's gone.
Is there a trick I am missing to make it appear?
Post
Replies
Boosts
Views
Activity
I have to build quite complex controls in IB which I want to look similar to the right side panel in Xcode. A use NSGridView with a first column with trailing-aligned labels, and a second column with controls. For simple controls like buttons, text fields etc this works nicely, as NSGridView has this row-alignment feature, which I set to baseline. But: As soon as I need more complex controls which I wrap in a custom view, the baseline row alignment of NSGridView doesn't work, as a simple NSView will allign it's top edge to the row's baseline...
Is is possible, with any trick or technique, to "forward" the baseline of the row into the custom view? For example, I would like to have a text field next to a slider and a checkbox in a custom view, and all three subcontrols should align their baseline to the row baseline.
And yes, I have thought about using multiple columns and merge then where necessary, but that doesn't work either, because often my controls of different rows have different horizontal alighment needs.