Re: Drawing a selection rectangle
Re: Drawing a selection rectangle
- Subject: Re: Drawing a selection rectangle
- From: Robert Clair <email@hidden>
- Date: Fri, 30 Jan 2004 08:03:44 -0500
>
Is there an efficient way to display a selection rectangle in a view
>
without having to keep redrawing the stuff the rectangle passes over?
Sure - make a transparent window that is placed over your view. You can
then draw in it and clear it without disturbing the view underneath.
Because the window server uses the graphics card's texture mapping
hardware
to do the compositing, you can follow the mouse in "real time".
I use this for all my temporary graphics and it works just fine.
......Bob Clair
_______________________________________________
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.