fredsco
fredsco

Reputation: 333

Swift: Adding button to bottom bar NSWindow

I created a bottom bar by doing:

window.setContentBorderThickness(24.0, forEdge: NSRectEdge.MinY)

Is it possible to add a button into the bottom border?

Upvotes: 2

Views: 924

Answers (1)

Guilherme Rambo
Guilherme Rambo

Reputation: 2046

The bottom border is just a background, to add views to It, just add them to the bottom edge of the window's contentView. You can do that in Interface Builder.

Sample project

enter image description here

Upvotes: 1

Related Questions