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: <24243@iuvax.cs.indiana.edu> Date: 4 Aug 89 00:02:23 GMT Sender: daemon@iuvax.cs.indiana.edu Lines: 33 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 >In article <246300028@uxa.cso.uiuc.edu> jpd00964@uxa.cso.uiuc.edu writes: >> > >Menu is just a window whose contentView is a matrix of menuCells, so >[aMenu contentView] returns the id of the Menu and oops, should be matrix >[[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