Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!orstcs!mist!jasmerb From: jasmerb@mist.CS.ORST.EDU (Bryce Jasmer) Newsgroups: comp.sys.next Subject: Re: submenu id's Message-ID: <11968@orstcs.CS.ORST.EDU> Date: 5 Aug 89 10:39:25 GMT References: <246300028@uxa.cso.uiuc.edu> Sender: usenet@orstcs.CS.ORST.EDU Reply-To: jasmerb@mist.CS.ORST.EDU (Bryce Jasmer) Organization: Oregon State Univ. -- Computer Science Lines: 19 In article <246300028@uxa.cso.uiuc.edu> jpd00964@uxa.cso.uiuc.edu writes: > >Is there any easy way to get the id of a submenu without an outlet? > >I know how to get the id of the main menu, but how do I go through its >submenus? 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];) I hope this helps somewhat. ----------------------------------------------------------------------------- |"The problem that I find most distressing is that Bryce Jasmer | people tend to make sweeping generalizations. We jasmerb@hobbes.cs.orst.edu | all are guilty of this." -----------------------------------------------------------------------------