🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.oop.macapp3
Article #36

TEditText Bug

#36
From: Research SW Design, D Goldman,PR...
Date: Sun, 27 Dec 1992 21:23
36 lines
2194 bytes
Dear MacApp'ers --
 
I've wasted enough time on this for tonight, so I'll invite any of you who have
dealt with this to help me...
 
It looks like our old friend the floating TEView is NEVER set to prefer outline
fonts. Even if in ViewEdit you have told the TEditText to "Prefer Outline
Fonts".
 
The result of this inconsistency: Make a TEditText field that uses 9-point
Geneva, and prefers outline fonts. Type something into this TEditText field
(or, more accurately, into its floating TEView). Move to another field, so that
the floating TEView goes away. (The text on the screen at this point is that
which the floating TEView drew, using a non-outline font.) Cover up part of the
TEditText field with some other window. Then uncover the TEditText field. Now
the TEditText object redraws the missing text, using an outline font. Since the
two versions of 9-point Geneva have slightly different metrics (at least on my
System 7.0 machine), the two parts of the text are noticeably out of alignment
with each other!
 
I would submit that this is a small bug in MacApp. In the accompanying link
("Takeover Example") I will use its fix (which is the part that I'm not going
to spend more time on tonight -- your suggestions or corrections are invited)
as an illustration of MacApp support/ownership issues.
 
-- Dave Goldman
   Research Software Design
 
P.S. The work-around for now, of course, is to go back to ViewEdit and uncheck
"Prefer Outline Fonts".
 
P.P.S. All right, I couldn't help myself! The fix should probably be to have
TEditText::InstallFloatingTEView set the floating TEView's fPreferOutline field
to this->fPreferOutline. (Perhaps TTEView should have a mutator method to do
this. At the moment you can only set TTEView::fPreferOutline via ViewEdit!)
 
Technical Details
Message-ID: <725492237.8665743@AppleLink.Apple.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!olivea!apple!applelink.apple.com

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!olivea!apple!applelink.apple.com
From: RSD@AppleLink.Apple.COM (Research SW Design, D Goldman,PRT)
Newsgroups: comp.sys.mac.oop.macapp3
Subject: TEditText Bug
Message-ID: <725492237.8665743@AppleLink.Apple.COM>
Date: 27 Dec 92 21:23:00 GMT
Sender: daemon@Apple.COM
Organization: AppleLink Gateway
Lines: 36