God, that's NOT THE WAY!!!! (was: Use -display INSTEAD of -setNeedsDisplay)
God, that's NOT THE WAY!!!! (was: Use -display INSTEAD of -setNeedsDisplay)
- Subject: God, that's NOT THE WAY!!!! (was: Use -display INSTEAD of -setNeedsDisplay)
- From: Ondra Cada <email@hidden>
- Date: Mon, 17 Dec 2001 14:49:35 +0100
Erik,
>
>>>>> Erik M. Buck (EMB) wrote at Sun, 16 Dec 2001 21:24:46 -0600:
...
EMB> I hereby reverse my previous very insistent assertion that
EMB> -setNeedsDisplay: should be used in preference to -display whenever
EMB> possible. The opposite is actually true.
EMB>
EMB> Use -display rather than -setNeedsDisplay: whenever possible.
...
That would seriously broke efficiency of all applications for years to come.
Just please *ANYBODY* who has *ANY* influence in Apple, roar to them to FIX
THIS VERY SERIOUS BUG ASAP!
But don't please work around it a way which would render the application
considerably crippled as soon as it is fixed.
Meantime, we should just bear the thing. Or somebody might publish a
quick-and-dirty fix around the lines of yours (4) (re-implement
-setNeedsDisplay: to call -display immediately) -- unless anybody other does
that first, I'll do that in next release of OCSmart Hacks.
But I think we should NEVER EVER use and advocate using a provably very
faulty programing pattern just since that Apple has some (hopefully
temporary) bug in the correct one!
Perhaps I am wrong, but this looks me quite like we would recommend to
fixing some problem Apple brought into NSString (like, say, bad
interpretation of the format characters) by advocating using plain ol' char*
instead.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc