Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!ziploc!eps From: eps@toaster.SFSU.EDU (Eric P. Scott) Newsgroups: comp.sys.next Subject: Re: Submenus and menu updates Message-ID: <257@toaster.SFSU.EDU> Date: 19 Jan 90 06:38:11 GMT References: <1189@shelby.Stanford.EDU> Reply-To: eps@cs.SFSU.EDU (Eric P. Scott) Organization: San Francisco State University Lines: 22 In article <1189@shelby.Stanford.EDU> combs@sumex-aim.stanford.edu (Dave Combs) writes: >There appears, given the current documentation, to be no way to access >the submenu to be called from a given menu item. It's easy to find out >that the item HAS a submenu, but appears impossible to find out what >object that submenu actually IS. If [aMenuCell hasSubmenu] is true, [aMenuCell target] is the id of the submenu. >Question 2 - It also appears that there is no way to easily REMOVE an item >from a menu once it has been allocated (other than getting the itemlist, ... >Again, is this correct? You don't need to walk the itemlist if you have the MenuCell id. Use getRow:andCol:ofCell: (Matrix) followed by removeRowAt:andFree: (Matrix). I haven't actually tried this, but you may have to sizeToFit the matrix before sizeToFit on the menu. -=EPS=-