home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / programm / 18138 < prev    next >
Encoding:
Text File  |  1992-11-08  |  2.1 KB  |  49 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!decwrl!apple!mumbo.apple.com!gallant.apple.com!NewsWatcher!user
  3. From: nerm@apple.com (Dean Yu)
  4. Subject: Re: Problem with AddResMenu() on PowerBook 160, System 7.1
  5. Sender: news@gallant.apple.com
  6. Message-ID: <nerm-071192160206@90.10.20.86>
  7. Date: Sun, 8 Nov 1992 00:02:31 GMT
  8. Distribution: usa
  9. References: <1992Nov6.183503.13768@midway.uchicago.edu>
  10. Organization: Apple Computer, Inc.
  11. Followup-To: comp.sys.mac.programmer
  12. Lines: 35
  13.  
  14. In article <1992Nov6.183503.13768@midway.uchicago.edu>,
  15. chh9@quads.uchicago.edu (Conrad Halling) wrote:
  16. > I am adding the names of 81 resources to a menu in my program, using
  17. > either AddResMenu() or InsertResMenu().  These routines sort the names
  18. > before adding them to the list.
  19. > AddResMenu() and InsertResMenu() suddenly stopped working when I switched
  20. > to a PowerBook 160 running System 7.1.  The names are partially but not 
  21. > completely sorted.  I have experimented, reducing the number of resources 
  22. > down to as low as 8, yet the names are still not sorted correctly.
  23. > This does not seem to be a problem with the sorts of resources most people
  24. > use these routines for, 'DRVR' (now Apple menu items) and 'FONT'.  Of
  25. > course, with these types of resources, the code must be very different
  26. > since most Apple menu items are not really 'DRVR' resources and most
  27. > fonts are not really 'FONT' resources.
  28. > I don't know if this is a bug with System 7.1 or in the PowerBook 160 ROMs
  29. > since I don't (for the moment) have access to another Mac that is running
  30. > System 7.1.
  31. > Can anyone verify this behavior?
  32.  
  33.   Check your resource IDs.  The guts of AddResMenu and InsertResMenu were
  34. re-written for 7.1 to be more "international friendly".  It sorts in
  35. ranges, based on the script code.  (This is documented in IM 6, about which
  36. fonts are associated with which script system.)  We just got a little
  37. overzealous, and all resources wound up getting sorted this way instead of
  38. just fonts.  Bug or feature, you make the call.
  39.  
  40. -- Dean Yu
  41.    Blue Meanie, Negative Ethnic Role Model, etc.
  42.    Apple Computer, Inc.
  43.