• 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: How to use setNeedsDisplayInRect?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use setNeedsDisplayInRect?


  • Subject: Re: How to use setNeedsDisplayInRect?
  • From: Steve Mills <email@hidden>
  • Date: Sat, 16 Nov 2002 13:54:46 -0600

On Saturday, November 16, 2002, at 10:01 AM, email@hidden wrote:

How do I use the setNeedsDisplayInRect:(NSRect)dirtyRect?

Isn't the dirtyRect supposed to be an NSRect circumventing the
rectangle on screen which needs redrawing?

Huh? If you need a specific part of your view to redraw, you "dirty" that part with setNeedsDisplayInRect:dirtyRect. Like when you set a checkbox's state to on or off, it probably calls this routine with only the checkbox part of the control's bounds, since it doesn't need to redraw the label portion of it.

I use this routine in my app, fer example, to make the blinking insertion point redraw by only dirtying the rect enclosing the caret.

Steve Mills
Drummer, Mac geek
http://sjmills5.home.mchsi.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.

  • Prev by Date: Re: Cocoa-J and Interface Builder woes
  • Next by Date: Re: Sort Array
  • Previous by thread: How to use setNeedsDisplayInRect?
  • Next by thread: experts : is performSelectorOnMainThread blocking ?
  • Index(es):
    • Date
    • Thread