• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSBox Colored Background
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBox Colored Background


  • Subject: Re: NSBox Colored Background
  • From: Graham cox <email@hidden>
  • Date: Tue, 26 Oct 2004 11:56:13 +1000



I wonder if setting isOpaque to YES for the NSBox would do it? That way the window, which is what is rendering the metal, wouldn't bother, since it's behind an opaque view in that region. I'm guessing the standard NSBox is NOT marked opaque, since it draws a semi-transparent area on top of the window below.

worth a shot?

--Graham


On 26/10/2004, at 8:22 AM, August Trometer wrote:

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:
email@hidden

This email sent to email@hidden


_______________________________________________
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
  • Prev by Date: Re: NSAffineTransform
  • Next by Date: Re: encryption and hash api
  • Previous by thread: Re: NSBox Colored Background
  • Next by thread: NSMatrix / NSArrayController bindings
  • Index(es):
    • Date
    • Thread