Re: Background color for Drawers
Re: Background color for Drawers
- Subject: Re: Background color for Drawers
- From: Jeremy Dronfield <email@hidden>
- Date: Mon, 14 Jun 2004 10:16:40 +0100
On 14 Jun 2004, at 5:36 am, Steve Sheets wrote:
Is there way to set the background color for a drawer? Unlike
NSWindow, NSDrawer does not seem to have a background color to set.
That's because NSDrawer inherits from NSResponder, not NSWindow.
Nor does it use the background color of the parent window. If you set
the parent window to Metal Texture, the drawer does draws it
background using metal, but that seems to be the only direct control.
I could either override the drawers context view to draw a pattern, or
put a custom view over top of it that draws the pattern, but was
hoping for a better solution. Did I miss something?
You can set your drawer's contentView to any view you like. Create a
custom view and draw your pattern (pattern?!) in its -drawRect: method.
Regards,
-Jeremy
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.