• 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: 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

  • Follow-Ups:
    • Re: NSView background color
      • From: Mike Abdullah <email@hidden>
References: 
 >NSView background color (From: Richard Langly <email@hidden>)

  • Prev by Date: Async NSURLConnection and blocks (was: Running NSURLConnection from within an NSOperation?)
  • Next by Date: Re: CoreData and memory leaks
  • Previous by thread: NSView background color
  • Next by thread: Re: NSView background color
  • Index(es):
    • Date
    • Thread