Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Red Menace

macrumors 6502a
May 29, 2011
578
226
Colorado, USA
Usually you would initialize the control, set some attributes, and add it to your window's content view, but without at least a little bit of help such as maybe OS and Xcode versions, language, exactly what you are wanting to do and what you have done so far, etc, you aren't going to get much help.
 

jivaro

macrumors newbie
Original poster
Apr 21, 2012
16
0
Cornella de Llobregat (Spain)
Usually you would initialize the control, set some attributes, and add it to your window's content view, but without at least a little bit of help such as maybe OS and Xcode versions, language, exactly what you are wanting to do and what you have done so far, etc, you aren't going to get much help.

I'm trying to develop an application for Mac OS X. I'm running a G5 with Mac OS X version 10.5.8 and XCode 3.1.4. I bought this Mac 2nd hand for 200 €. After decades of PCs this is my first Mac, I am loving it and I plan to buy myself a new Mac for my next anniversary.

Now, going to my problem, I have implemented a piece of code allowing to (add and) remove items from a ComboBox:
Code:
	NSString *comboEntry = [outletComboBoxCell stringValue];    // get comboBox entry
	[outletComboBoxCell removeItemWithObjectValue:comboEntry];  // delete comboBox entry
	[outletComboBoxCell setStringValue:@""];                    // set comboBoxCell to nul
and I would like that after deleting an item from the ComboBox list, the pop-up list was displayed to show the rest of elements still there.

I have googled the issue, and found nothing so far, only a reference to a popUp method that is not documented and I have not been able to make it work.

I'm sure that there must be some solution to this issue, but I am not able to find it.
 
Last edited by a moderator:

Sydde

macrumors 68030
Aug 17, 2009
2,552
7,050
IOKWARDI
Can you explain why a combo box is the best choice for what you are trying to accomplish? To me, it sounds like a rather awkward tool for the kind of thing you are describing (editing a list).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.