Properly using setNeedDisplayInRect
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