• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting the "iCal" window style?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • [SOLVED] Re: Getting the "iCal" window style?
      • From: Nick Zitzmann <email@hidden>
References: 
 >Getting the "iCal" window style? (From: Nick Zitzmann <email@hidden>)
 >Re: Getting the "iCal" window style? (From: "Kyle Sluder" <email@hidden>)
 >Re: Getting the "iCal" window style? (From: Nick Zitzmann <email@hidden>)
 >Re: Getting the "iCal" window style? (From: "Steven Degutis" <email@hidden>)
 >Re: Getting the "iCal" window style? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Getting the "iCal" window style?
  • Next by Date: Re: Getting the "iCal" window style?
  • Previous by thread: Re: Getting the "iCal" window style?
  • Next by thread: [SOLVED] Re: Getting the "iCal" window style?
  • Index(es):
    • Date
    • Thread