Reputation: 143
I have a toolbar in an NSWindow
in my Cocoa app, and it works great, but I'm having trouble editing it. When I open it (or double-click on any of its items in the tree on the left in Xcode), the toolbar editing sheet hides behind other views in the NSWindow
.
Is there a way to edit a toolbar by itself in a new window or something? Is there a trick to getting other views in my NSWindow
to go "below" the toolbar in IB? The toolbar itself is perfectly fine when my program is running. It's just editing it that's a giant pain.
EDIT: Here, the content area of the window has a vertical NSSplitView
, and the left half (an NSScrollView
) is completely over the toolbar customizing sheet in IB, and the Custom View on the right side is over the sheet as well but it's transparent so I can see through it a little bit:
If I delete the window contents (the NSSplitView
), then I can edit the toolbar (like Jay's picture), but that can't be what I'm expected to do every time I want to edit a toolbar item.
Upvotes: 2
Views: 815
Reputation: 6638
Basically editing the toolbar in IB is as easy as double-clicking..
Double-click on either the Toolbar or an Toolbar Item and the Toolbar Editor will open in the Editor area of IB. This is the same view users can see when customizing toolbars at runtime.
To change the toolbar configuration you then change the Default toolbar items area to whatever you desire and hit Done afterwards!
Upvotes: 1