Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!sdd.hp.com!news.cs.indiana.edu!arizona.edu!neutron.physics.arizona.edu!zazula From: zazula@neutron.physics.arizona.edu (Ralph E. Zazula) Newsgroups: comp.sys.next Subject: Adding submenu items Message-ID: <1991May30.075451.722@arizona.edu> Date: 30 May 91 14:54:51 GMT Distribution: usa,local Organization: University of Arizona, Telecommunications, Tucson AZ Lines: 26 Nntp-Posting-Host: neutron.physics.arizona.edu I'm trying to add a number of submenu items to an existing menu. I used IB to add a "Submenu" menuCell to the applications main menu. I deleted the one submenu "item" so that there are no items in the submenu at launch. I created the outlet partMenuCell and connnected it to the submenu button (named "Parts"). Here is the snippet of code I am trying to use to add sub-items to Parts: [[[partMenuCell target] // this returns the id of the sub menu addItem:"this part" action:@selector(orderFront:) keyEquivalent:'\0'] // this should make the item setTarget:[partWindowList objectAt:i]]; partWindowList is a list of Window objects and i is a loop variable. The program dosen't crash when I run it but the items "this part" never show up in the "Parts" submenu. Any ideas? Thanks, Ralph -- |----------------------------------------------------------------------| | Ralph Zazula "Computer Addict!" | | University of Arizona --- Department of Physics |