Re: Creating a Bottom Bar on NSWindow
Re: Creating a Bottom Bar on NSWindow
- Subject: Re: Creating a Bottom Bar on NSWindow
- From: Benjamin Stiglitz <email@hidden>
- Date: Wed, 3 Dec 2008 10:01:29 -0500
If you're targeting Leopard, you can put these 2 lines in your
controller's -awakeFromNib: method:
[[self window] setAutorecalculatesContentBorderThickness:YES
forEdge:NSMinYEdge];
[[self window] setContentBorderThickness: 32.0 forEdge: NSMinYEdge];
If you create a textured window NSWindow will automatically call -
setAutorecalculatesContentsBorderThickness:YES forEdge: with both
NSMaxYEdge and NSMinYEdge on your behalf. The only time you should
need to call this method is if you don’t have opaque content that
stretches across most of your window, or you want to show a bottom-
edge divider like the one at the bottom of Address Book.
-Ben_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden