Re: NSView background color
Re: NSView background color
- Subject: Re: NSView background color
- From: Kyle Sluder <email@hidden>
- Date: Mon, 21 Jun 2010 10:18:18 -0700
On Sat, Jun 19, 2010 at 6:06 PM, Richard Langly
<email@hidden> wrote:
> I have an NSView in a *.nib file. I'm trying to change the background
> color in it to match the unified toolbar metal color (not exactly sure
> what the name of that color is either).
>
> My controller to this view calls initWithNibName:, but other than
> that, I don't see where or how I can change the color to this view.
NSView doesn't have the concept of a background color, because it
doesn't do any drawing. You'll have to do your drawing in your
override of -drawRect:.
--Kyle Sluder
_______________________________________________
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