drawRect & needsDisplay & co
drawRect & needsDisplay & co
- Subject: drawRect & needsDisplay & co
- From: Cristi Savu <email@hidden>
- Date: Fri, 6 Dec 2002 10:08:10 +0200
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
_______________________________________________
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.