• 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
Properly using setNeedDisplayInRect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Properly using setNeedDisplayInRect


  • Subject: Properly using setNeedDisplayInRect
  • From: Gustavo Pizano <email@hidden>
  • Date: Wed, 17 Mar 2010 09:50:17 +0100

Hello all

  normally I just redraw the whole view by sending the setNeedDisplay method, but in the case Im right now, I have placed Tracking areas, and when the mouse enter the TA Im coloring a bezier path corresponding the TA area (kinda of rollovers, but just for a few specific places that I need to be highlighted), so I was thinking in passing to the setNeeddipslayInRect method the TA rect, but its not clear for me how to just draw  the bTa background, becuase in the drawRect Method Im just checking if Im in a TA and then filling the path I created in the mouseDown method.

I check the Apple docs, and in the advance drawing techniques it says, like Draw Minimally, and they suggest using that method also... so how to make sure Im just drawing the backgrounds of the  active TA and not redrawing the whole view?


thanks

Gustavo
 _______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Properly using setNeedDisplayInRect
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Invalidated object on close of managed document
  • Next by Date: set file name in NSSavePanel
  • Previous by thread: Invalidated object on close of managed document
  • Next by thread: Re: Properly using setNeedDisplayInRect
  • Index(es):
    • Date
    • Thread