Barath
Barath

Reputation: 1754

How to Change Title Bar Height in Cocoa - Storyboard

I am trying to change the title bar height in storyboard(Cocoa). I came across the INAppStore Window, which is not storyboard. How to adjust title bar height in storyboard(cocoa).

Upvotes: 0

Views: 364

Answers (1)

Aaron
Aaron

Reputation: 889

I personally used WAYWindow and that worked pretty well but this will work just as well for INAppStoreWindow. It's a drop in replacement for NSWindow so you can select your window in your storyboard and then change its class to WAYWindow in the Identity inspector. After that you can go to the Attributes inspector and change the window height attribute.

You do need to be using an NSWindowController in your Storyboard though. If you use a "show" segue the view controller you segue to will be in a NSWindowController instance you can't change. If you want to have a segue to a view controller where the window has a big title bar and you really don't want to segue to a window controller you would need to have a custom segue.

Upvotes: 2

Related Questions