Re: NSView Background
Re: NSView Background
- Subject: Re: NSView Background
- From: lbland <email@hidden>
- Date: Wed, 7 Jan 2004 08:49:31 -0500
On Jan 6, 2004, at 8:17 PM, Matt Gemmell wrote:
You can create a subclass of NSView and in its drawRect: method, use
code something like this:
[[NSColor blackColor] set];
NSRectFill(rect);
/* where rect is the NSRect passed to the drawRect: method. */
ouch!
try this instead:
[[NSColor blackColor] set];
NSRectFill([self bounds]);
because /* where rect is the NSRect passed to the drawRect: method. */
can be anything.
-lance
Lance Bland
mailto:email@hidden
VVI
888-VVI-PLOT
http://www.vvi.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.