Re: Getting the "iCal" window style?
Re: Getting the "iCal" window style?
- Subject: Re: Getting the "iCal" window style?
- From: "Ken Ferry" <email@hidden>
- Date: Mon, 3 Mar 2008 20:54:00 -0800
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@hidden> 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 (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