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

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.

  • Follow-Ups:
    • Re: NSView Background
      • From: Nicko van Someren <email@hidden>
References: 
 >NSView Background (From: Denis Vaillant <email@hidden>)
 >Re: NSView Background (From: Matt Gemmell <email@hidden>)

  • Prev by Date: Re: Encryption
  • Next by Date: Re: Encryption
  • Previous by thread: Re: NSView Background
  • Next by thread: Re: NSView Background
  • Index(es):
    • Date
    • Thread