I have a NSView with a sub view. I want to be able to redraw the sub view (call its drawRect) without redrawing the parent view. Is that possible?
When i case setNeedsDisplay on he sub view, drawRect of the parent view also called.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One thing you can do to reduce unnecessary drawing is overide
-isOpaqueand return YES.Of course, you should only do this if the subview is in fact opaque.