• 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: How do I get those 1 pixel black lines into my app window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I get those 1 pixel black lines into my app window?


  • Subject: Re: How do I get those 1 pixel black lines into my app window?
  • From: Brandon Walkin <email@hidden>
  • Date: Thu, 7 Aug 2008 16:18:30 -0400

Use a non-textured window instead of a textured one. You'll get a black line beneath the titlebar (or toolbar). To get a bottom bar with a divider line, call this method on your window:

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

Set the thickness to 34 for a large bar, or 24 for a small one. Edge should be NSMinYEdge.

Cheers,
Brandon

On 7-Aug-08, at 2:20 PM, Sumner Trammell wrote:

Hi, I've notced that in most apps, at the top and bottom, there is a 1
pixel black line separating the gray window
from the (usually) white content.

This looks better than stock, which of course is why everybody and
Apple seems to be doing it. What is the canonical way to do this?  Are
people using horizontal line NSBox objects to create these?  That
seems like a kludge.  They also make for Illegal Geometry complaints
from Interface Builder.


Thanks, -s _______________________________________________

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

_______________________________________________

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: 
 >How do I get those 1 pixel black lines into my app window? (From: "Sumner Trammell" <email@hidden>)

  • Prev by Date: Re: Confusion over FSMoveObjectToTrashSync docs
  • Next by Date: Re: Confusion over FSMoveObjectToTrashSync docs
  • Previous by thread: How do I get those 1 pixel black lines into my app window?
  • Next by thread: Re: How do I get those 1 pixel black lines into my app window?
  • Index(es):
    • Date
    • Thread