ftp.nice.ch/peanuts/GeneralData/Usenet/news/1989/CSN-89.tar.gz#/comp-sys-next/1989/Aug/submenu-ids

This is submenu-ids in view mode; [Up]


Date: Sun 03-Aug-1989 20:20:00 From: Unknown Subject: submenu id's 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? Michael Rutman Softmed >From: tsui@silver.bacs.indiana.edu (Yufeng Tsui)
Date: Sun 03-Aug-1989 20:20:00 From: Unknown Subject: submenu id's 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? Michael Rutman Softmed >From: ali@polya.Stanford.EDU (Ali T. Ozer)
Date: Sun 05-Aug-1989 10:39:25 From: Unknown Subject: Re: submenu id's 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." ----------------------------------------------------------------------------- >From: ali@polya.Stanford.EDU (Ali T. Ozer)
Date: Sun 05-Aug-1989 15:31:54 From: Unknown Subject: Re: submenu id's 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 >From: dz@casaba.ucsb.edu (Daniel James Zerkle)

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Marcel Waldvogel and Netfuture.ch.