The AppKit release notes cover this:

---
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.
---

The 'lighter gradient' you're after is the top gradient being repeated
at the bottom.

-Ken

On Mon, Mar 3, 2008 at 8:48 PM, Nick Zitzmann <[EMAIL PROTECTED]> wrote:
>
>  On Mar 3, 2008, at 9:39 PM, Steven Degutis wrote:
>
>  > I haven't tested this, but I'm almost certain that the thickness of
>  > the bottom border is exactly what causes the gradient to become
>  > lighter. Perhaps you should follow up on Kyle's advice and try it.
>
>
>  You're making the assumption that I didn't. I did this in my -
>  awakeFromNib method, as I have seen in some sample code:
>
>  [[self window] setAutorecalculatesContentBorderThickness:NO
>  forEdge:NSMaxYEdge];
>  [[self window] setAutorecalculatesContentBorderThickness:NO
>  forEdge:NSMinYEdge];
>  [[self window] setContentBorderThickness:0.0f forEdge:NSMaxYEdge];
>  [[self window] setContentBorderThickness:30.0f forEdge:NSMinYEdge];
>
>  However, it makes no difference. Did anyone get it to draw lighter
>  this way, and if so, then what worked for you?
>
>
>  Nick Zitzmann
>  <http://www.chronosnet.com/>
>
>  _______________________________________________
>
>  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