Re: Smart way to get "etched" borders in Leopard
Re: Smart way to get "etched" borders in Leopard
- Subject: Re: Smart way to get "etched" borders in Leopard
- From: Jesse Grosjean <email@hidden>
- Date: Fri, 9 Nov 2007 23:30:36 -0500
Ken,
We are probably driving you nuts with our stupidity, but I'm also
still having a hard time getting this to work. For a textured window
I the call setContentBorderThickness:forEdge: does seem to make a
difference in the background, but as you say no black line is drawn
in that case. But when I try
setContentBorderThickness:forEdge:NSMinYEdge on a normal non textured
window I don't see any change in it's appearance at all.
Thanks again for your help, I'm sure the answer is sitting right
there, I just can't seem to get it.
Can someone walk me through how to make this work the really slow way :)
Jesse
On Nov 9, 2007, at 10:41 PM, Andrew Kimpton wrote:
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