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

Drawing a selection rectangle


  • Subject: Drawing a selection rectangle
  • From: Jeffrey Mattox <email@hidden>
  • Date: Fri, 30 Jan 2004 00:03:16 -0600

Is there an efficient way to display a selection rectangle in a view without having to keep redrawing the stuff the rectangle passes over? Currently, I'm just drawing a dashed box as I drag the mouse, but as the rectangle moves, I need to redraw the old region (or the lazy way, redraw the entire view).

I'd like a way, for example, to add a drawing "layer" that contains only the selection rectangle, and then simply redraw that layer. Seems like a common thing to do.

Tips?

Jeff
_______________________________________________
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: Drawing a selection rectangle
      • From: Daryn <email@hidden>
  • Prev by Date: Re: Instance variable.
  • Next by Date: Re: Any new/updated Cocoa books soon?
  • Previous by thread: Re: Pausing workspace actions
  • Next by thread: Re: Drawing a selection rectangle
  • Index(es):
    • Date
    • Thread