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 PROTECTED]> 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 (Cocoa-dev@lists.apple.com)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/kenferry%40gmail.com
>
> This email sent to [EMAIL PROTECTED]
>
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to