Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!uwm.edu!linac!mp.cs.niu.edu!ux1.cso.uiuc.edu!resnick From: resnick@cogsci.uiuc.edu (Pete Resnick) Newsgroups: comp.sys.mac.programmer Subject: Re: Hierarchical Menus in DAs Keywords: DA hierarchical menu resource Message-ID: <1991May12.190740.27405@ux1.cso.uiuc.edu> Date: 12 May 91 19:07:40 GMT References: <1991May11.214528.18598@world.std.com> Sender: usenet@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 30 barry@world.std.com (Barry L Wolman) writes: >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. If >my DA is accessed via Suitcase II or MasterJuggler, there doesn't seem >to be a problem. But, if I've used Font DA mover to move my DA into a >suitcase, how can I determine the new IDs assigned by Font DA mover? >I suppose I could assign names to them, load them via GetNamedResource >and then use GetResInfo to determine the ID. Is there a better way? The menu *IDs* have to be in the range 236-255, not the *resource* numbers. The resource numbers should be set up as usual for DA owned resources. >Suppose I try to put multiple DAs into a suitcase, each of them having >some hierarchical menus. Font DA mover will renumber the menu IDs, but >there are only twenty available numbers. What happens if there are more >than twenty hierarchical menus? Check me on this, but so long as you have unique resource numbers, duplicate menu IDs should not be a problem. pr -- Pete Resnick (...so what is a mojo, and why would one be rising?) Graduate assistant - Philosophy Department, Gregory Hall, UIUC System manager - Cognitive Science Group, Beckman Institute, UIUC Internet/ARPAnet/EDUnet : resnick@cogsci.uiuc.edu BITNET (if no other way) : FREE0285@UIUCVMD