NSBox Colored Background
NSBox Colored Background
- Subject: NSBox Colored Background
- From: August Trometer <email@hidden>
- Date: Mon, 25 Oct 2004 17:22:53 -0500
Hello!
I'm trying to get an NSBox much like Apple has in iPhoto -- rounded,
inset rectangle with a colored, non-metal background.
I've written a subclass which uses drawRect method to create a
NSBezierPath inside the box. I can get the color just fine, and I can
get the inset just fine. However, all the controls inside (such as an
NSPopUpButton) still show metal as the background. Strangely, when I
resize the window, the metal goes away, but as soon as the control is
used, it appears again. And apparently you can't change the background
of a Button. Finally, I've tried redrawing the controls in awakeFromNib
with no luck.
Any ideas?
Thanks!
August
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden