A kind of MacOS control that allows you to either enter text directly (as you would with an NSTextField) or click the attached arrow at the right of the combo box and select from a displayed (“pop-up”) list of items.
Questions tagged [nscombobox]
120 questions
0
votes
2 answers
How to make a NSComboBox invisible or transparent
Hello there
I am trying to make a NSComboBox transparent but its not working. I am trying it with the following method:
[NSComboBox setTransparent:YES];
But it seems that NSComboBox doesn't implement setTransparent neither does NSComboBoxCell nor…

Omayr
- 1,949
- 4
- 22
- 35
0
votes
1 answer
NOOB Problems with getting results from code (more specificly with NSComboBox)
I know that this is probably a simple question but here is what I'm racking my brain to figure this out:
I know that this:
- (id)comboBox:(NSComboBox *)aComboBox objectValueForItemAtIndex:(NSInteger)index {
return [midiModelContents…

Loren Zimmer
- 482
- 1
- 6
- 29
0
votes
0 answers
Working with NSComboBox and controlTextDidEndEditing
I have an NSComboBox and I'm trying to make it so that when the user selects a name, the other information (rate, rate type, and nationality) get automatically inputted. It works sometimes, but it causes an error at other times.
This code:
-…

Ares
- 116
- 7
0
votes
0 answers
How to set data source of NSComboBox to plist?
I have a plist called People.plist and I'm trying to populate an NSComboBox called nameBox. I can't find anything in the documentation that says how to do this or if it's even possible. I assume this is easy, but I can't seem to find anything…

Ares
- 116
- 7
0
votes
0 answers
Where do mouseDown events go when the control key is down?
I have subclassed NSComboBox for a number of reasons, including a strategy for displaying contextual menus without the OS adding arcane things to them. (“Add to iTunes as a spoken track”???) Here are my mouse event methods:
public override func …

Jeff J
- 139
- 8
0
votes
3 answers
NSComboBox - how can I implement a delegate for 2 different comboBoxes?
I've implemented the NSComboBoxDelegate:
-(void)comboBoxSelectionDidChange:(NSNotification *)notification{
}
- (void)controlTextDidEndEditing:(NSNotification *)aNotification{
}
- (void)comboBoxWillPopUp:(NSNotification *)notification{
}
-…

Aviram Netanel
- 12,633
- 9
- 45
- 69
0
votes
1 answer
Converting an NSComboBox to and NSTextField Easily
I have an NSComboBox and I was wondering if there is an easy way to convert it to an ordinary NSTextField? Considering NSCombBox is a subclass of NSTextField, I would think there is an easy way to turn this on/off but I can't figure it out.

mac2017
- 445
- 1
- 6
- 16
0
votes
1 answer
How do I extract the font name from a NSFontAttributeName?
I have a NSComboBox and I want it to display the font name where the cursor is. I have the current code :
- (void)textDidChange:(NSNotification *)notification {
[self.fontBox setStringValue:[self.doc.textStorage attribute:NSFontAttributeName…
user4541952
0
votes
2 answers
Dynamic Data for NSCombobox
How to dynamically add NSComboBox data using objective c and cocoa framework in xcode?
-(void)awakeFromNib
{
NSLog(@"View controller instance with view: %@", self.view);
char* data = getData(); // I will be using data to populate records…

newbieMACuser
- 847
- 1
- 11
- 19
0
votes
1 answer
How to correctly add NSComboBox to view-based NSTableView in Interface Builder
I'm basically asking how do you correctly add a Combo Box to a Table View with correct layout i.e. so that appears as if you were adding a ComboBox cell to a cell-based Table View. Currently when I add it to the Table Cell View it doesn't fit…

ALXGTV
- 362
- 3
- 12
0
votes
1 answer
Cocoa combobox autocompletion action
I have a NSComboBox with a lot of items. Therefore I activated auto completion, so that the user can "search" for the item, he needs.
In addition I have a button, which the user have to click, after the item is selected. This button is disabled and…

Lupurus
- 3,618
- 2
- 29
- 59
0
votes
0 answers
Cocoa - Reloading NSComboBox (OSX)
::edit - solved.. I had not conformed to NSComboBoxDataSource properly..
I have an NSComboBox implementation that works - except - when the data source is changed, the changes are not reflected in the combo box until the app is restarted. I have…

ICL1901
- 7,632
- 14
- 90
- 138
0
votes
1 answer
How to make NSComboBox lose focus after selection?
I have a combo box in my OSX app and I want it to lose focus right after I change the value selection.
Right now it just stays selected and highlighted after the selection.
Any kind of help is highly appreciated!

Eugene Gordin
- 4,047
- 3
- 47
- 80
0
votes
1 answer
NSComboBox bound to NSArrayController not updating
I have an issue with bindings between an NSComboBox element and an NSArrayController.
All bindings are setup in IB.
The NSComboBox element has the following bindings:
Content: bound to the NSArrayController instance, key: arrangedObjects
Content…

Francesco
- 1,840
- 19
- 24
0
votes
1 answer
Programmatically load an NSComboBox with keys/values (or bindings?)
I have an sqlite3 database loaded an accessed and am trying to put the contents of the following table into an NSComboBox (and then auto-select the default key bases on other operating parameters). Here is the table contents:
(table)…

EchoBinary
- 125
- 1
- 2
- 9