• 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: NSView background color
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSView background color (From: Richard Langly <email@hidden>)
 >Re: NSView background color (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Memory management on returning nil in init
  • Next by Date: Re: Async NSURLConnection and blocks (was: Running NSURLConnection from within an NSOperation?)
  • Previous by thread: Re: NSView background color
  • Next by thread: scaling plot to nsview size
  • Index(es):
    • Date
    • Thread