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
2
votes
1 answer

What are the correct bindings for an NSComboBox for use with Core Data

Imagine if you will a Core Data app with two entities (Employee, and Department). Employees have a to-one relationship with department (department) and the inverse is a to-many relationship (employees). In the UI you can select individual Employee…
theMikeSwan
  • 4,739
  • 2
  • 31
  • 44
2
votes
2 answers

How to sort NSComboBox contents

Here is my code to display combo box: self.records = [[NSMutableArray alloc] initWithArray:[mylist componentsSeparatedByString:@","]]; [self.recordsCombo addItemsWithObjectValues:self.records];
newbieMACuser
  • 847
  • 1
  • 11
  • 19
2
votes
1 answer

NSComboBox close popup pogrammatically

Is there a way to close the NSComboBox popup programmatically? There seem to be a bug with NSComboBox when the popup is open, and the control get's removed and then released. For some reason, the dealloc of the NSComboBox doesn't clear the popup…
AndyTang
  • 547
  • 7
  • 24
2
votes
2 answers

Strange bug in NSComboBox: selectItemAtIndex does not work correctly when using data source

I've run into a strange problem with the NSComboBox component. Its "selectIndexAtPath" behavior changes depending on the data source: A "fixed" list causes the item to be correctly selected and when I open the list by clicking the arrow-button on…
Niels Mouthaan
  • 1,010
  • 8
  • 19
2
votes
1 answer

Cocoa-Bindings : Bind NSComboBox selection to a field in NSObjectController

in my application I have a NSObjectController bound to all controls on the user interface. This works fine so far. The only problem I have is binding the selection of an NSComboBox to the same ObjectController. As far as I found out today the value…
TalkingCode
  • 13,407
  • 27
  • 102
  • 147
2
votes
1 answer

NSCombobox binding issues

I wish I could select the area of risk from NSCombobox "A" and then automatically its "fee" should appear in cell "B". This is because I'll have to multiply the "Surface" and "rate". Column "A" binding: Value bind to: Particelle controller key:…
Andrea
  • 427
  • 3
  • 16
2
votes
2 answers

NSComboBoxCell disable typing?

I have a NSComboBoxCell that allows users to select an item from a list, but currently it also allows the user to type a value that they would like. I haven't been able to figure out a way to make it so that the user cannot type into the combo box…
Kyle
  • 17,317
  • 32
  • 140
  • 246
2
votes
1 answer

NSComboBox Delegation

I have an NSComboBox with a datasource and it works perfectly when you click on the triangle and select one of the items by clicking on it. However, I also want it to allow the user to type in the box to select the name using the auto complete. …
Greg Steiner
  • 647
  • 1
  • 9
  • 20
2
votes
1 answer

NSComboBox to display unique items from a coredata entity binding of a property

I have a typical Mac CoreData application which displays my entities in an NSTableView with an NSArrayController, and a panel on the right to edit/display the currently selected item in the NSTableView. I have an Entity (Pigeon) with an NSString…
DonnaLea
  • 8,643
  • 4
  • 32
  • 32
1
vote
0 answers

NSComboBox & NSTextView: save textview value to model on combo box value change

While I'm quite experienced with developing iOS applications, I'm still a bit of a newbie with regards to Mac OS X application development. The issue I'm having is the following ... I've created a UI with a combo box, several text fields and 2 text…
Wolfgang Schreurs
  • 11,779
  • 7
  • 51
  • 92
1
vote
1 answer

how to implement an Drop Down List for iphone

I searched about UIPickerView and NSComboBox , I really don't understand the difference between these two !!! can anyone tell me what is the best way to show an Drop down list in xcode . I saw the picker view but I think it is too much coding for a…
Milianoo
  • 1,476
  • 1
  • 10
  • 9
1
vote
2 answers

How can I send action from NSComboBox to a function upon section?

I'm creating a combo box programmatically and I would like to cause the selection from the drop down menu to call a function. I can do it if i'm creating a button using - myButton.action = #selector(some_function(_:)), but it doesn't work with an…
1
vote
1 answer

NSComboBox and NSTextField with bindings

I have an NSArrayController that I fill in the awakeFromNib method. The data has the keys: id, name, and description. I have a ComboBox and a TextField bound to the NSArrayController the first with the name and the second with the id. If I change…
Javier Beltrán
  • 756
  • 5
  • 26
1
vote
1 answer

How to set relationships using NSComboBoxCell, NSTableView, and Core Data

I have an example application I'm working on to help me learn about Core Data. In this application I created a model consisting of the entities "Friend" and "City". The application list my friends and which city they are from in an NSTableView. …
Jason
  • 11,709
  • 9
  • 66
  • 82
1
vote
1 answer

OSX SwiftUI integrating NSComboBox Not refreshing current sélected

SwiftUI Picker is looking very bad on OSX especially when dealing with long item lists Swiftui Picker on OSX with a long item list And since did find any solution to limit the number of item displayed in by Picker on Osx , I decided to interface…
jymen
  • 13
  • 3