blond
blond

Reputation: 23

how to change height of window title bar in cocoa?

there some applications with larger window title bars than in "Interface Builder". for example "Things" application. So how can i do this?

Upvotes: 2

Views: 3484

Answers (2)

user155959
user155959

Reputation:

The following method of NSWindow lets you modify the size of the window's content border:

- (void)setContentBorderThickness:(CGFloat)thickness forEdge:(NSRectEdge)edge

Upvotes: 2

nall
nall

Reputation: 16139

Interface Builder and Things have the same size title bars for their main windows. Interface Builder does offer a toolbar, which when expanded can make it appear larger than Things.

Interface Builder also has a few NSPanels (I'm guessing this is what you're talking about). NSPanel will have a small title bar as seen in the IB Library/Inspector. These window will hide when the application isn't the active application. However non-NSPanel NSWindows will have the title bar seen in Things.

If you want normal title bars, use NSWindows, not NSPanels, but also note their expected usage

Upvotes: 1

Related Questions