Questions tagged [nscombobox]

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.

120 questions
0
votes
1 answer

Filling a NSComboBox with data generated in foreign-class-array

after my last question, regarding accessing an array from a different class, I ran into an new problem, that's giving me a headache for three days now. Everytime I think I have the correct solution approach, I fail. Well... I don't have many…
0
votes
1 answer

Getting selected Text Value from NSComboBox

I'm trying to get the selected string from comboBox.The string casting is not working let font = NSFont(name:String(combo_font.objectValueOfSelectedItem), size: 50) How to properly get the string value?
techno
  • 6,100
  • 16
  • 86
  • 192
0
votes
0 answers

Searching NSCombobox for large number of arrays

I have two NSCombobox in same ViewController. One is for country and other for city. I have text files with country name which includes cities with respective latitude and longitude. For example: USA text file contains 17456 list of cities. I want…
John
  • 31
  • 5
0
votes
1 answer

NSComboBox autocompletion with an NSValueTransformer

I want to make an NSComboBox with a list of predetermined values. The underlying objects are a custom Swift struct, and I'm using a custom NSValueTransformer to transform those to and from the underlying string representation I'm storing. I want to…
Dov
  • 15,530
  • 13
  • 76
  • 177
0
votes
0 answers

How to select an item of combobox when pressing a key

I have a combo box with a array of items in string. After i click the arrow to show all the items, i want when i press a key which represent first letter of a item then the respective item will be selected (item is highlighted and…
Huy Ha
  • 120
  • 10
0
votes
2 answers

comboBoxSelectionDidChange with multiple NScomboboxes

I have an app with two combo boxes in the same view that is both loaded from an SQLite database. If the user makes a selection in combo box 1, I want to fire a method to restrict the values in combo box 2. I think I need comboBoxSelectionDidChange…
Colin W
  • 45
  • 2
  • 7
0
votes
1 answer

Illegal NSComboBox datasource

I have a MyViewController class which inherits from a MyGeneralViewController (itself a NSViewController subclass). In MyViewController xib file, I added two NSComboBox, and selected "use datasource" in IB and connected the datasource and delegate…
Denis
  • 775
  • 7
  • 22
0
votes
0 answers

Enforcing NSTableView only on selected row

I'm building a view-based NSTableView with editable row columns. After user finishes editing a row and then selects another row using mouse/keyboard I want to prompt user asking if row just changed should be saved. I was able to get this working by…
griftopia
  • 135
  • 1
  • 3
  • 10
0
votes
0 answers

NSCombobox in view-based NSTableView problems

So I had a view based TableView with 3 text columns. TableView is editable and I can tab across columns to edit. I then decided I needed a "type" for each column which could let user select a fixed set of types. I deleted the NSTextField and…
griftopia
  • 135
  • 1
  • 3
  • 10
0
votes
0 answers

Special auto-completion behaviour for NSComboBox

I have an NSComboBox containing several items. If the user types while the list is open, I would like to select the appropriate item within the list (if there is a corresponding item). The twist: The string in the text field is not necessarily equal…
phimuemue
  • 34,669
  • 9
  • 84
  • 115
0
votes
0 answers

Disable of items in NSComboBox

I have an NSComboBox with some values. Is there any way by which I can disable a few items? I want some values to be enabled and some disabled. Is it possible?
P.D
  • 1
0
votes
3 answers

"'Objects' may not respond to 'functions'" warnings

for the last couple of weeks I've finally gotten into Obj-C from regular C and have started my first app. I've watched tutorials and read through a book along with a lot of webpages, but I know I've only just begun. Anyway, for most of the night…
Andrew
  • 65
  • 1
  • 1
  • 5
0
votes
0 answers

How can we implement custom NSComboBox using NSComboBoxCell

I am new to OS X. I am trying to implement a drop down using the NSComboBox. I need to customize that, for this, I found NSComboBoxCell component in the storyboard. But did not find the implementation steps for this. I need to open a drop down list…
Dev
  • 21
  • 5
0
votes
1 answer

Preselecting a NSComboBox Entry

I have a modal window that contains a NSComboBox. "Uses Data Source" is set to turn and the combobox correctly lists the entries. The view controller is the delegate for the data source. When I call the modal window to update an existing object I…
curt
  • 4,422
  • 3
  • 42
  • 61
0
votes
1 answer

NSComboBoxCell subclass example?

I have been working on a custom UI for my Cocoa application. By looking around the internet, I have managed to learn how to subclass a large number of UI objects on MacOSX. In many cases I could make the appearance work the way I want. The last UI…