Skip navigation.
 
mlRe: Smart way to get "etched" borders in Leopard
FROM : Jesse Grosjean
DATE : Sat Nov 10 05:30:36 2007

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

Related mailsAuthorDate
mlSmart way to get "etched" borders in Leopard jesse Nov 4, 18:33
mlRe: Smart way to get "etched" borders in Leopard Chris Hanson Nov 5, 01:00
mlRe: Smart way to get "etched" borders in Leopard Rob Keniger Nov 5, 03:57
mlRe: Smart way to get "etched" borders in Leopard Jesse Grosjean Nov 8, 22:29
mlRe: Smart way to get "etched" borders in Leopard Ken Ferry Nov 8, 23:00
mlRe: Smart way to get "etched" borders in Leopard Andrew Kimpton Nov 9, 22:42
mlRe: Smart way to get "etched" borders in Leopard Ken Ferry Nov 10, 02:10
mlRe: Smart way to get "etched" borders in Leopard Andrew Kimpton Nov 10, 04:41
mlRe: Smart way to get "etched" borders in Leopard Jesse Grosjean Nov 10, 05:30
mlRe: Smart way to get "etched" borders in Leopard Antonio Nunes Nov 10, 08:41
mlRe: Smart way to get "etched" borders in Leopard Jesse Grosjean Nov 11, 16:28