Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!cbnewsk!ech From: ech@cbnewsk.att.com (ned.horvath) Newsgroups: comp.sys.mac.programmer Subject: Re: Hierarchical Menus in DAs Message-ID: <1991May12.205320.21492@cbnewsk.att.com> Date: 12 May 91 20:53:20 GMT References: <1991May11.214528.18598@world.std.com> Organization: AT&T Bell Laboratories Lines: 19 From article <1991May11.214528.18598@world.std.com>, by barry@world.std.com (Barry L Wolman): > IM-V page 236 says that the ID for hierarchical menus used by a DA must > be in the range 236-255. Fine, but how do I number my two menus so as > to avoid a conflict with hierarchical menus used by some other DA... Don't confuse the menu's resource ID (which should be in the range "owned" by your DA, hence no conflicts with other DAs) with the menuID, which is the short integer given by the first two bytes of the MENU resource. Most app writers keep these identical to avoid confusion, but they needn't be, and in the original (pre-7.0, no Suitcase-like utility installed) they pretty well have to be different: Font/DA Mover will remap the resourceIDs when there's a conflict, but won't modify that menuID (as far as I know!). =Ned Horvath= ehorvath@attmail.com -- =Ned Horvath= ehorvath@attmail.com