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: Sun, 11 Nov 2007 10:28:03 -0500
Thanks that did it!
Jesse
On Nov 10, 2007, at 2:41 AM, Antonio Nunes wrote:
On 10 Nov 2007, at 04:30, Jesse Grosjean wrote:
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 :)
The way I understood and implemented it, you have place this call
at the right moment. What I did is to create an NSWindow subclass
and put the code in initWithContentRect:styleMask:backing:defer:
E.g:
@implementation MyNSWindowSubclass
- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)
windowStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)
deferCreation
{
self = [super initWithContentRect:contentRect
styleMask:windowStyle backing:bufferingType defer:deferCreation];
if (self) {
[self setContentBorderThickness:20.0 forEdge:NSMinYEdge];
}
return self;
}
@end
The window is not textured.
Good luck!
-António
--------------------------------------------
I try to take one day at a time, but sometimes, several days attack
me all at once!
--------------------------------------------
_______________________________________________
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