Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!iuvax!daemon From: tsui@silver.bacs.indiana.edu (Yufeng Tsui) Newsgroups: comp.sys.next Subject: (none) Message-ID: <24242@iuvax.cs.indiana.edu> Date: 3 Aug 89 23:58:56 GMT Sender: daemon@iuvax.cs.indiana.edu 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? > >Michael Rutman >Softmed Menu is just a window whose contentView is a matrix of menuCells, so [aMenu contentView] returns the id of the Menu and [[aMenu contentView] cellAt:i:0] returns the cell(id) at row i col 0. Then you can check if this cell is a leaf or not... Hope this helps. --yufeng tsui@silver.bacs.indiana.edu