Path: utzoo!attcan!uunet!cs.utexas.edu!csd4.milw.wisc.edu!mailrus!shadooby!accuvax.nwu.edu!nucsrl!gore!jacob From: jacob@gore.com (Jacob Gore) Newsgroups: comp.sys.next Subject: Re: Setting a PopUpList's selection Message-ID: <130011@gore.com> Date: 8 Jul 89 07:22:18 GMT References: <130006@gore.com> Reply-To: jacob@gore.com (Jacob Gore) Organization: Gore Enterprises Lines: 22 / comp.sys.next / jacob@gore.com (Jacob Gore) / Jun 30, 1989 / > Given an instance of PopUpList, how do you select, from the program, an > item in it? > ... > One way is capture the 'sender' of the first click as the Matrix instance > that the PopUpList is using, and then do something like > [theMatrix selectCellAt:itemNumber:0] Duh... get used to RTFM all they way up the inheritance chain, Jacob... Anyway, in case anybody else is waiting for the answer: PopUpList inherits from Matrix method 'itemList', which returns the matrix. So, what I was looking for was: [[thePopUpList itemList] selectCellAt:itemNumber:0] Now, if I could only figure out why doing the selectCellAt:: has no effect on the appearance of the pop-up list... -- Jacob Gore Jacob@Gore.Com {nucsrl,boulder}!gore!jacob