• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Re(2): God, that's NOT THE WAY!!!! (was: Use -display INSTEAD of -setNeedsDisplay)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 -----

References: 
 >Re: God, that's NOT THE WAY!!!! (was: Use -display INSTEAD of -setNeedsDisplay) (From: "Erik M. Buck" <email@hidden>)
 >Re(2): God, that's NOT THE WAY!!!! (was: Use -display INSTEAD of -setNeedsDisplay) (From: Jens Bauer <email@hidden>)

  • Prev by Date: Re: NSMutableAttributeString, fonts and alignment
  • Next by Date: Re: How to display second window?
  • Previous by thread: Re(2): God, that's NOT THE WAY!!!! (was: Use -display INSTEAD of -setNeedsDisplay)
  • Next by thread: PDF Flate de/compression
  • Index(es):
    • Date
    • Thread