Path: utzoo!attcan!uunet!husc6!uwvax!oddjob!ncar!ames!pasteur!agate!sizzlean!lippin From: lippin@sizzlean.berkeley.edu (The Apathist) Newsgroups: comp.sys.mac.programmer Subject: Re: Custom menu bars Message-ID: <10259@agate.BERKELEY.EDU> Date: 24 May 88 10:43:16 GMT References: <10241@agate.BERKELEY.EDU> Sender: usenet@agate.BERKELEY.EDU Reply-To: lippin@math.berkeley.edu Organization: Authorized Service, Incorporated Lines: 30 More problems: The Init message to a MBDF should cause it to allocate a structure in the system heap. But there's scant information on what that structure is. Presumably, it would contain the menu rects and some identification of open menus. Plus a mysterious field lastMBSave, which apparently does nothing but get cleared. Is this structure to be of some specific form? If so, what form? If not, what is the meaning of clearing its lastMBSave field? In fact, what *is* the lastMBSave field? Also, although the MBDF is supposed to allocate this thing, it doesn't return a reference to it. Should the pointer/handle (which one, anyway?) be stuck in some unmentioned global spot? As this thing is sitting in the system heap, I'd like to see it disposed of sometime. What takes care of that? (The dispose message isn't described as doing so.) Finally, the MBDF is supposed to try to align the top of a hierarchical menu with the item its associated with in the parent menu. How does it know where the item in the parent menu is? The MDEF doesn't have a code for telling it. Why is the MBDF handling this anyway? It has little to do with how the menu bar works. Inquiring minds want to know! --Tom Lippincott ..ucbvax!math!lippin "We demand rigidly defined areas of doubt and uncertainty" --Vroomfondel