Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!shelby!polya!ali From: ali@polya.Stanford.EDU (Ali T. Ozer) Newsgroups: comp.sys.next Subject: Re: submenu id's Message-ID: <11141@polya.Stanford.EDU> Date: 5 Aug 89 15:31:54 GMT References: <246300028@uxa.cso.uiuc.edu> <11968@orstcs.CS.ORST.EDU> Sender: Ali T. Ozer Reply-To: aozer@NeXT.com (Ali Ozer) Organization: . Lines: 11 In article <11968@orstcs.CS.ORST.EDU> Bryce Jasmer writes: >>Is there any easy way to get the id of a submenu without an outlet? >I haven't tried this but it looks pretty easy to do. Get the id of the >main menu (theMenu = [NXApp mainMenu];) which is a matrix of menuCells, >cycle through each cell and check if it is a submenu. >(someBOOL = [theMenuCell hasSubmenu];) And the id of the submenu is available as the target of that cell; so [theMenuCell target] should give you the submenu. Ali Ozer, NeXT Developer Support aozer@NeXT.com