Re: Re(2): God, that's NOT THE WAY!!!! (was: Use -display INSTEAD of -setNeedsDisplay)
Re: Re(2): God, that's NOT THE WAY!!!! (was: Use -display INSTEAD of -setNeedsDisplay)
- Subject: Re: Re(2): God, that's NOT THE WAY!!!! (was: Use -display INSTEAD of -setNeedsDisplay)
- From: "Erik M. Buck" <email@hidden>
- Date: Wed, 19 Dec 2001 11:42:25 -0600
- Organization: EMB & Assocites Inc.
-display means display right now regardless of the state of the object being
displayed.
-display does not check any flags.
-display IS what you call -forceDisplay
Calling -display multiple times does indeed draw multiple times. That is
why -setNeedsDisplay: was provided. Rather than calling -display
call -setNeedsDisplay:. At the end of the current event loop iteration, all
views that have been marked as needing display are displayed with -display
exactly once.
The problem is that -setNeedsDisplay: is causing views that DON'T need
display to be displayed.
----- Original Message -----