• 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: Smart way to get "etched" borders in Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Smart way to get "etched" borders in Leopard


  • Subject: Re: Smart way to get "etched" borders in Leopard
  • From: Andrew Kimpton <email@hidden>
  • Date: Fri, 9 Nov 2007 22:41:33 -0500


On Nov 9, 2007, at 8:10 PM, Ken Ferry wrote:

I'm trying to get that look in my main window too - and unfortunately
nothing I've tried seems to work.

The window is a textured window

Yes, you won't see the separator in textured windows. The bottom gradient goes in a different direction, and the separator isn't appropriate. Here's the relevant paragraph from the release notes:

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


OK - then I must be very confused by what this API is for ? If you look at the top and bottom of iPhoto you'll see a single pixel dark line (across the top) and a single pixel dark line with and additional single pixel gray line (bottom). The pictures at http://awkward.org/downloads/iPhoto_TopLeft.png and http://awkward.org/downloads/iPhoto_BottomRight.png show what I mean.


Are those lines being produced because the bulk of the window (excluding the zoom control, segment control etc. at the bottom) is contained inside an NSBox ? How do you get an NSBox to produce a different appearance for top vs. bottom ? Isn't iPhoto using a Textured window ? Virtually every Leopard app (except mine 8-) has at least the black line seperating the top wide textured section (sometimes containing a tool bar sometimes not - look at IB) and the 'content' area (list, table collection etc.)

Thanks

-Ken
Cocoa Frameworks

Andrew 8-) _______________________________________________

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:
    • Re: Smart way to get "etched" borders in Leopard
      • From: Jesse Grosjean <email@hidden>
References: 
 >Smart way to get "etched" borders in Leopard (From: email@hidden)
 >Re: Smart way to get "etched" borders in Leopard (From: Chris Hanson <email@hidden>)
 >Re: Smart way to get "etched" borders in Leopard (From: Jesse Grosjean <email@hidden>)
 >Re: Smart way to get "etched" borders in Leopard (From: "Ken Ferry" <email@hidden>)
 >Re: Smart way to get "etched" borders in Leopard (From: Andrew Kimpton <email@hidden>)
 >Re: Smart way to get "etched" borders in Leopard (From: "Ken Ferry" <email@hidden>)

  • Prev by Date: drawing an array of pixels to the screen
  • Next by Date: Re: SenTestingKit fails when using CG-Only
  • Previous by thread: Re: Smart way to get "etched" borders in Leopard
  • Next by thread: Re: Smart way to get "etched" borders in Leopard
  • Index(es):
    • Date
    • Thread