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
3
votes
1 answer
CoreAnimation uncommitted CATranaction NSComboBox
I am populating an NSComboBox with some data from the function below. After it is populated and I try to scroll through the items I get the CATransaction warning. Can anyone shed some light on why this is happening and what I can do to fix it? I…

Charles Vincent
- 229
- 4
- 15
3
votes
1 answer
NSCombobox too large
I was trying to create a mac application. But after I inserted the combobox using Interface Builder and run the application, I got the following message:
This application is trying to draw a very large combo box, 28 points tall. Vertically…

Vinh
- 944
- 13
- 34
3
votes
2 answers
How to autocomplete values on NSComboBox
I'm developing an app for MacOS X in Xcode5
I want to autocomplete option typed on textfield when user types or deletes text, for instance if user types "Me" then Mexico option is displayed on list of options, so far this is my code:
@interface…

Jesus
- 8,456
- 4
- 28
- 40
3
votes
3 answers
What to do about this long error: This application is trying to draw a very large combo box
I cannot find any reference to this on SO.. The full message is:
"This application is trying to draw a very large combo box, 32 points
tall. Vertically resizable combo boxes are not supported, but it
happens that 10.4 and previous drew…

ICL1901
- 7,632
- 14
- 90
- 138
3
votes
1 answer
NSComboBox vertical alignment
i have an NSComboBox that displays text not vertically aligned.
Is there a method to vertical align text inside an NSComboBox?
As you can see, it's very strange and it doesn't change on fontsize basis. I've searched NSComboBox Class Reference but…

Val K.
- 113
- 1
- 10
3
votes
2 answers
Binding Cocoa NSComboBox value to object
Assuming I have an NSObject subclass representing a country, e.g.
@interface CountryInfo : NSObject
@property (nonatomic, retain) NSString *countryName;
My model contains an NSMutableArray of CountryInfos. I want to bind the array to an…

TheNextman
- 12,428
- 2
- 36
- 75
3
votes
3 answers
Binding NSComboBox to enum?
I've got a very simple problem, but the solution is proving very elusive.
Here's what I have:
typedef { foo, bar, baz} EnumType;
@interface SomeObject: NSObject
@property EnumType someEnumValue;
@end
...and a view with an object_controller and an…

David Stein
- 866
- 7
- 21
2
votes
2 answers
NSComboBoxDelegate called but old 'stringValue' remains
I select a value from the drop-down of a combo box. The NSComboBox delegate fires a comboBoxSelectionDidChange: notification, but when I retrieve the stringValue of the combo box, it's the old selected value. How do I get the updated value?
I have…

AWF4vk
- 5,810
- 3
- 37
- 70
2
votes
3 answers
Custom datasource with a NSComboBox not displaying anything
Greetings I have the following problem trying to set a datasource in an NSComboBox.
This is my custom datasource class:
@interface CComboDatasource : NSObject {
@private
NSMutableArray* values;
}
@property…

costas
- 23
- 1
- 3
2
votes
1 answer
How do I change the truncation method or width on the popup of a NSComboBox
The truncation can be easily set for the main text area but the popup does not do any truncation, with similar paths, users cannot tell which path is which.
or is the a way to change the width of the popup list to match the longest string so that…

Jared Zimmerman
- 89
- 1
- 8
2
votes
1 answer
NSComboBox with alternative ways of writing
I'm trying to implement a autocomplete function into a small app. I want to give the user the possibility to write down a city (from a long long list of cities) into a NSComboBox. That works fine, as long as the user is using the exact writing of…

Holger
- 356
- 4
- 11
2
votes
1 answer
How to implement the data source for multiple combo boxes in the same view controller
I have 2 combo boxes that use the same dictionary as the data source. in the first combo box the keys will be displayed and in the second one the values will be displayed.
First I need a bit of help with implementing the data source delegate…

mihai mimi
- 133
- 1
- 12
2
votes
2 answers
swift 2 OSX How can I have comboboxSelectionDidChange execute after NSComboBox.stringValue changes?
Clicking UI object NSComboBox incorrectly executes comboBoxSelectionDidChange(...) before it's .stringValue changes instead of after as it's name implies. It does same as .comboBoxSelectionIsChanging.
How can I have comboBoxSelectionDidChange(...)…

dbconfession
- 1,147
- 2
- 23
- 36
2
votes
1 answer
How to set value of NSComboBox by KVC?
I have several NSComboBoxes created in Interface Builder, and one created programmatically.
The NSComboBoxes created in Interface Builder are perfect. I have their Value bound to the Shared User Default Controller, and when their view is opened…

Dennis
- 1,215
- 1
- 12
- 15
2
votes
1 answer
NSComboBox with multiple selection Cocoa
Can we have a NSComboBox with multiple selection through checkboxes in OSx. Please find the attached image as an example.
Please help.

Utkarsha
- 250
- 2
- 12