Drawing a selection rectangle
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.