| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hello list,_______________________________________________
I encountered a weird NSView behavior and maybe someone could help me with this :
my view (descendant of NSQuickDrawView) needs to be repainted as a result of a user action (button click).
for this : i am sending an setNeedsDisplay:YES and setNeedsDisplayInRect:rect and (normally) drawRect is called.
The problem is that, from time to time, "someone else" is "calling" my drawRect and my view is repainted as if an setNeedsDisplayInRect (with always the same rect) was sent but I certainly didn't.
How can an area can be marked as needed to be displayed withought an explicit call and withought being overlapped by another window or panel ?
I tried to overwrite needsDisplay, but drawRect is called even if needsDisplay returns NO. How can this be possible ?
Can anybody advice ? Any hint or pointer ?
Best wishes, Cristian
| References: | |
| >drawRect & needsDisplay & co (From: Cristi Savu <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.