drawRect not always called after setNeedsDisplay
drawRect not always called after setNeedsDisplay
- Subject: drawRect not always called after setNeedsDisplay
- From: purple nekko <email@hidden>
- Date: Wed, 20 Jul 2005 20:39:38 -0700
Overview
---------
I have an NSView (viewA) that manages multiple subviews. This view's
drawRect contains code that positions and sizes all of its subviews
accordingly and calls each of the subview's setNeedsDisplay:YES
method. One of the subviews is also an NSView (viewB), and it also
has multiple subviews.
Problem
-------
If the window that contains viewA is resized, viewA's drawRect method
is invoked, but for some unknown reason, viewB's drawRect method is
not always invoked, despite the fact that viewA's drawRect method
invokes viewB's setNeedsDisplay:YES method. The drawRect method
associated with all of viewA's other subviews are invoked though.
Question
--------
Can anyone suggest any reasons as to why viewB's drawRect method is
not always called after its superview sends it a setNeedsDisplay
message? Any ideas on what I'm doing wrong would be appreciated.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden