Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!bionet!apple!cambridge.apple.com!brazil!alms From: alms@brazil.cambridge.apple.com (Andrew L. M. Shalit) Newsgroups: comp.sys.mac.programmer Subject: Re: How do I do dynamic menus (adding/removing entries)? Message-ID: Date: 22 Aug 89 16:42:11 GMT References: <10029@phoenix.Princeton.EDU> Sender: news@cambridge.apple.com Organization: Apple Computer Inc, Cambridge, MA Lines: 11 In-reply-to: bskendig@phoenix.Princeton.EDU's message of 21 Aug 89 20:01:16 GMT I have a program that involves several numbered text windows. At any time, the user can create a new window or close an old one. I'd like to have a 'Windows' menu from which the user can select any one of the currently-open windows. I have no trouble adding an item to the menu for each window I create, but there are no routines for removing items from the menu whenever I close a window! Is there some problem with calling the trap _DelMenuItem whenever a window is closed?