Re: How do I get those 1 pixel black lines into my app window?
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