Re: NSDrawWindowBackground question
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