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: Andrew Kimpton <email@hidden>
- Date: Fri, 9 Nov 2007 16:42:37 -0500
On Nov 8, 2007, at 5:00 PM, Ken Ferry wrote:
Hi Jesse,
You can see that right
below the scroll view there are two lines that form a etching of some
sort. From top to bottom, a dark (black?) line followed by a lighter
line.
http://hogbaysoftware.com/files/leapardscreen.png
Yes, there is something new here. Take a look at -[NSWindow
contentBorderThicknessForEdge:] and friends.
http://developer.apple.com/releasenotes/Cocoa/AppKit.html#NSWindow
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 it has a large view under the content
view which in turn contains some smaller views, a sibling to this view
is a button, a progress bar and a text field. I have approx 20-30
pixels of space above and below the large view (which contains the
other sibling views).
The large view has no 'etching' around it at all. Adding :
[[self window] setAutorecalculatesContentBorderThickness:NO
forEdge:NSMinYEdge | NSMaxYEdge];
[[self window] setContentBorderThickness:10.0 forEdge:NSMinYEdge |
NSMaxYEdge]; // Try 10.0 just to get an effect
To my windowcontrollers awakeFromNib doesn't make any difference either.
I don't see what else is needed from my reading of the Release notes.
Any other pointers ?
-Ken
Cocoa Frameworks
Andrew 8-)
P.S. You can see a screenshot of the incorrect look at http://awkward.org/downloads/window_no_etching.png
_______________________________________________
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