home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / oop / macapp3 / 16 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.8 KB

  1. Path: sparky!uunet!spool.mu.edu!agate!ames!data.nas.nasa.gov!taligent!apple!applelink.apple.com
  2. From: D3431@AppleLink.Apple.COM (MacroMedia Programmers,PRT)
  3. Newsgroups: comp.sys.mac.oop.macapp3
  4. Subject: UFloatWindow & Kotoeri palette
  5. Message-ID: <722171257.8164257@AppleLink.Apple.COM>
  6. Date: 19 Nov 92 01:10:00 GMT
  7. Sender: daemon@Apple.COM
  8. Organization: AppleLink Gateway
  9. Lines: 37
  10.  
  11.  
  12.  
  13. Dear MACAPP2TECH$ and MACAPP3TECH$ folks,
  14.  
  15. Macromedia has several applications written with MacApp 2 which exhibit a
  16. common bug under KanjiTalk 7.1: they crash when the Kotoeri palette is opened.
  17. These apps all use the UFloatWindow extension to MacApp to handle their
  18. floating windows.
  19.  
  20. I believe that the problem is in MABringToFront in UFloatWindow.inc1.p. This
  21. routine is MacApp 2's patch for BringToFront that preserves window layering.
  22. The code uses the conditional
  23.  
  24.                     windPeek^.windowKind < 0
  25.  
  26. to determine if the window is a system window. Since the Kotoeri palette has a
  27. windowKind of 7, it is not recognized as a system window. Instead the code for
  28. handling document windows gets executed, and when the SendBehind trap gets
  29. called a bus error occurs.
  30.  
  31. When I change this conditional to
  32.  
  33.     (windPeek^.windowKind < userKind) & (windPeek^.windowKind <> dialogKind)
  34.  
  35. so that windows with windowKinds of 0, 1, 3, 4, 5, 6, and 7 - in addition to
  36. those with negative values - are recognized as system windows, the problem
  37. seems to go away. I decided to recognize all these values, rather than just 7,
  38. because Inside Macintosh I-276 says that "WindowKind values 0, 1, and 3 through
  39. 7 are reserved for future use by the system."
  40.  
  41. Has anyone else encountered this problem? How did you fix it? Do you know if
  42. this is the proper way to handle not only the Kotoeri palette but other future
  43. system windows?
  44.  
  45. - Gordon Smith, Macromedia
  46.   AppleLink D3431
  47.  
  48.