ftp.nice.ch/peanuts/GeneralData/Usenet/news/1991/CSN-91.tar.gz#/comp-sys-next/1991/Jul/Novice-IB-user-question

This is Novice-IB-user-question in view mode; [Up]


Date: Sun 18-Jul-1991 19:48:58 From: Michael_I_Summers@cup.portal.com Subject: Novice IB user question Sorry this, must be a FAQ, but I need this prototype up NeXT week. Can someone point me to an add-in for the Interface Builder that will give me a pop-up menu as a "Palettes" item? If not that, what is the quickest way to get pop-up menus into the IB? Thanks in advance, Mike
Date: Sun 19-Jul-1991 09:33:11 From: tn505981@longs.LANCE.ColoState.EDU (Todd Nathan) Subject: Re: Novice IB user question In article <44484@cup.portal.com>, Michael_I_Summers@cup.portal.com writes: > Sorry this, must be a FAQ, but I need this prototype up NeXT week. > > Can someone point me to an add-in for the Interface Builder that will > give me a pop-up menu as a "Palettes" item? If not that, what is the quickest > way to get pop-up menus into the IB? > > Thanks in advance, > Mike Mike, IB has what you want. In palettes window, click on the STANDARD OBJECTS button (3rd from the left) and there is a popup button there. This should give you what you are asking for. By the way, isn't it called a pop-up list? I don't know if there are many NeXT Thought Police out there, but if so, maybe we will hear from them on this. Todd Nathan Vesalius Project, CSU
Date: Sun 19-Jul-1991 18:15:31 From: Michael_I_Summers@cup.portal.com Subject: Re: Novice IB user question Hmmm, probably should've mentioned that 2.x hasn't arrived yet so this under (temporarily) IB 1.x. Sorry for the brain dead posting-- Mike.
Date: Sun 19-Jul-1991 22:51:03 From: hacker@hera.Sbi.Com (Bill Hacker) Subject: Re: Novice IB user question In article <16283@ccncsu.ColoState.EDU>, tn505981@longs.LANCE.ColoState.EDU (Todd Nathan) writes: > > > In article <44484@cup.portal.com>, Michael_I_Summers@cup.portal.com writes: > > > > Can someone point me to an add-in for the Interface Builder that will > > give me a pop-up menu as a "Palettes" item? If not that, what is the quickest > > way to get pop-up menus into the IB? > > > > IB has what you want. In palettes window, click on the STANDARD OBJECTS > button (3rd from the left) and there is a popup button there. This > should give you what you are asking for. By the way, isn't it called > a pop-up list? I don't know if there are many NeXT Thought Police out > there, but if so, maybe we will hear from them on this. > You might find some additional info on the PopUpList useful that I just figured out myself last night. The PopUpList Button in IB is fine for setting up a static PopUp Menu with a fixed set of items, but it doesn't give your program access to the object PopUpList itself so that you can add and delete items dynamically. The only objects you can connect to outlets are MenuCells, not the PopUpList itself. If your program needs direct access to the PopUpList, use a standard Button object from IB, and in your program at run time, create a PopUpList dynamically (at run time) with alloc and init messages. You can use "addItem" messages to setup the appropriate menu items. Use the function NXAttachPopUpList to attach it to the button and convert it into a PopUp Menu. This way you have full access to the functionality of the PopUpList. By setting sending a "changeButtonTitle" message to the PopUpList with a parameter of YES or NO, you can control whether the Button is a PopUp Menu or a PullDown Menu My understanding of the terminology is (and someone please correct me if this is wrong): The user interface item itself is called either a "Pop Up Menu" or a "Pull Down Menu". The title of the Pop Up Menu button changes to the value selected. the title of the Pull Down Menu does not change. The AppKit Class used to implement both of these menus is "PopUpList".
Date: Sun 21-Jul-1991 06:38:28 From: scott@gac.edu (Scott Hess) Subject: Re: Novice IB user question <743@waycool.hera.Sbi.Com> In article <743@waycool.hera.Sbi.Com> hacker@hera.Sbi.Com (Bill Hacker) writes: You might find some additional info on the PopUpList useful that I just figured out myself last night. The PopUpList Button in IB is fine for setting up a static PopUp Menu with a fixed set of items, but it doesn't give your program access to the object PopUpList itself so that you can add and delete items dynamically. The only objects you can connect to outlets are MenuCells, not the PopUpList itself. If your program needs direct access to the PopUpList, use a standard Button object from IB, and in your program at run time, create a PopUpList dynamically (at run time) with alloc and init messages. You can use "addItem" messages to setup the appropriate menu items. Use the function NXAttachPopUpList to attach it to the button and convert it into a PopUp Menu. This way you have full access to the functionality of the PopUpList. Not! The PopUpList thing in IB _is_ that button you are talking about. To get at the PopUpList part, simply get the button's target. Everything else will work just as described in this situation, except it's a little easier to code (ie, there's really not any setup code). You don't then have to worry about popup-ness or pulldown-ness or anything. Later,

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Marcel Waldvogel and Netfuture.ch.