• 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: NSDrawWindowBackground question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDrawWindowBackground question


  • Subject: Re: NSDrawWindowBackground question
  • From: Jonathan Hendry <email@hidden>
  • Date: Wed, 5 Sep 2001 11:01:29 -0500

It's a system color.

Open the Color panel in a Cocoa app, and select the
third button with the little swatch squares.

Select System from the Palette popup, and you'll
see the stripes as both "controlColor" and
"windowBackgroundColor".

You can access these from NSColor using

NSColor *stripeyColor = [NSColor controlColor];

or

NSColor *stripeyColor = [NSColor windowBackgroundColor];


You can also create your own pattern colors with
+ (NSColor*)colorWithPatternImage:(NSImage*)image;

- Jon

On Wednesday, September 5, 2001, at 10:08 , Robert Miller wrote:

Hello,

Anyone know how to draw the standard gray striped background WITHOUT
using the NSDrawWindowBackground call ?

Thanks,
Bob M.
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


References: 
 >NSDrawWindowBackground question (From: Robert Miller <email@hidden>)

  • Prev by Date: NSColorWell setColor crash
  • Next by Date: Re: what's difference and relationship between CoreFoundation and Fou ndation framework
  • Previous by thread: NSDrawWindowBackground question
  • Next by thread: NSColorWell setColor crash
  • Index(es):
    • Date
    • Thread