home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / oop / macapp3 / 335 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  2.1 KB

  1. Path: sparky!uunet!olivea!apple!applelink.apple.com
  2. From: B.HABLUTZEL@AppleLink.Apple.COM (Hablutzel, Bob,CST)
  3. Newsgroups: comp.sys.mac.oop.macapp3
  4. Subject: Re2: Takeover - QA
  5. Message-ID: <726163188.2689201@AppleLink.Apple.COM>
  6. Date: 4 Jan 93 15:35:00 GMT
  7. Sender: daemon@Apple.COM
  8. Organization: AppleLink Gateway
  9. Lines: 41
  10.  
  11. Dave -
  12.  
  13.   To echo what Jesse has said, I can think of a scenario that might cause
  14. problems with changing the fPrefersOutline setting of the TTEView for some
  15. applications. Consider an application that uses a dialog box with an edit text,
  16. initially empty, that uses Times 12 font. Times is not used anywhere else in
  17. the application. The TEditText is set to prefer the outline font. The user
  18. enters text in the edit text, and clicks the OK button to exit. There are no
  19. other edit texts in the dialog; for that matter there are no other
  20. target-eligible views in the dialog.
  21.  
  22.   As the application currently stands, the text for the edit text is imaged
  23. using bitmap Times 12. However, with the change, the text will be imaged using
  24. TrueType Times, scaled to 12 point.
  25.   The difference is one of memory usage in the system heap. Remember, Times is
  26. not used anywhere else in the application (and assume for argument that it is
  27. used in no other applications). Before the patch, the memory usage in the
  28. system heap was 7K (for the Time 12 bitmap); after the patch, it is 67K (for
  29. the Times TrueType definition).
  30.   It is important to note that, since the edit text is initially empty, the
  31. TrueType font is not loaded until the user starts to enter text in the dialog.
  32. (Check the code).
  33.  
  34.   Could this cause problems? Possibly. Frankly, I doubt it. The memory
  35. difference (60K) is too small to really be a problem. The problem could easily
  36. be fixed in this instance. Is it really an error with the patch? I would argue
  37. that it isn't, but, and this is the important part, it is a change in the side
  38. effects of using a TEditText.
  39.  
  40.   Granted, this is stretching it. But this is just off the top of my head.
  41. Maybe it will happen, maybe not. Do you know of any way of checking without
  42. testing the code?
  43.  
  44. Bob
  45.  
  46.  
  47. Bob Hablutzel
  48. Hablutzel Consulting
  49. ALink: B.HABLUTZEL
  50. Phone: 708 328 0130
  51.  
  52.