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

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.

  • Prev by Date: Using NSScrollView at run time
  • Next by Date: Re: Objective C language [NEWBEE QUESTIONS]
  • Previous by thread: Re: Drawing a selection rectangle
  • Next by thread: UndoManager Notifications
  • Index(es):
    • Date
    • Thread