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: "Ken Ferry" <email@hidden>
- Date: Thu, 7 Aug 2008 13:20:33 -0700
Hi Sumner,
Check out the discussion of -[NSWindow
setContentBorderThickness:forEdge:] in the AppKit release notes.
Here's some of it, but it's probably better to read it in context.
"The behavior of -setContentBorderThickness:forEdge:NSMinYEdge and
-setAutorecalculatesContentBorderThickness:NO forEdge:NSMinYEdge for
non-textured windows will do the following: The top gradient will be
repeated in the bottom border, separator lines will be drawn between
the content and the bottom border, and the bottom corner will be
rounded. Other methods on non-textured windows or unused edges will
return 0.0 or YES."
http://developer.apple.com/releasenotes/Cocoa/AppKit.html#NSWindow
-Ken
On Thu, Aug 7, 2008 at 11:20 AM, Sumner Trammell
<email@hidden> 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