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