Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!decwrl!adobe!heaven!glenn From: glenn@heaven.woodside.ca.us (Glenn Reid) Newsgroups: comp.sys.next Subject: Re: Accessing/updating PopUpLists Message-ID: <401@heaven.woodside.ca.us> Date: 23 Jan 91 02:10:59 GMT References: <7885@umd5.umd.edu> Reply-To: glenn@heaven.woodside.ca.us (Glenn Reid) Distribution: na Organization: RightBrain Software, Woodside, CA Lines: 25 In article <7885@umd5.umd.edu> jkight@sinai.umd.edu (Jeff Kight) writes: >I am programming under 2.0 with the Interface Builder. I add a PopUpList >which is a combination button/popuplist. [ some stuff deleted about using "setTitle:" ] >When I repeatedly add titles to the button, it only "adds" the last one, as >it should by the above definition. If I setTitle then click the button (pop >up the list) and then perform another setTitle, the different titles are >added. Try this method instead, if you want to add a whole bunch of items to the popup list before you start using it (this is from the tech docs under PopUpList): - addItem:(const char *)title Adds the item with the name title to the PopUpList. The newly added cell is returned. The new item is added to the end of the list. /Glenn -- Glenn Reid RightBrain Software glenn@heaven.woodside.ca.us NeXT/PostScript developers ..{adobe,next}!heaven!glenn 415-851-1785 (fax 851-1470)