• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Creating a Bottom Bar on NSWindow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Creating a Bottom Bar on NSWindow (From: "Mike Chambers" <email@hidden>)
 >Re: Creating a Bottom Bar on NSWindow (From: Andre Masse <email@hidden>)

  • Prev by Date: Re: Any reason to avoid GCC-4.2 for Leopard and later targeted code?
  • Next by Date: RE: Any reason to avoid GCC-4.2 for Leopard and later targeted code?
  • Previous by thread: Re: Creating a Bottom Bar on NSWindow
  • Next by thread: Re: Creating a Bottom Bar on NSWindow
  • Index(es):
    • Date
    • Thread