Re: NSView background color
Re: NSView background color
- Subject: Re: NSView background color
- From: Mike Abdullah <email@hidden>
- Date: Mon, 21 Jun 2010 18:34:20 +0100
On 21 Jun 2010, at 18:18, Kyle Sluder wrote:
> 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:.
Or use an NSBox set to a custom color.
_______________________________________________
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