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
2 answers

Get NSComboBox to work like an HTML Combo

Is it possible to have the values displayed in an NSComboBox be different from what is retrieved with objectValueOfSelectedItem? So, it will display an object's string name but it's int recordId is returned instead of the string name? Other than…
0
votes
1 answer

Equals string with value item of NSCombobox

I want get index of value item of NSCombobox if string equals it. My code is add item for NSCombobox : for (int i = 1; i <= 30; ++i) { [combox addItemWithObjectValue:[NSNumber numberWithInt:i]]; } I don't know how to count value item of…
HTKT611
  • 161
  • 1
  • 1
  • 11
0
votes
1 answer

NSControl does not work on different Mac

I encountered a very strange problem which I can't solve by myself. I have several UI elements embedded in a NSWindow running as NSBorderlessWindowMask. There are 2 NSSlider, 3 NSButton, a NSComboBox and a NSColorWell. The application builds for…
Git.Coach
  • 3,032
  • 2
  • 37
  • 54
0
votes
1 answer

Unable to retrieve selected index from NSComboBox

Im trying to get the selected index of a NSComboBox that has a datasource by using indexOfSelectedItem. [combobox setUsesDataSource:YES]; [combobox setDataSource:dataSource]; [combobox selectItemAtIndex:1]; int idx =[combobox…
Martinj
  • 416
  • 4
  • 5
0
votes
1 answer

comboBoxWillDismiss event not fired when changing NSComboBox

I have an NSComboBox defined in Interface Builder, and the -(void)comboBoxWillDismiss:(NSNotification *)notification function in my .m file. However, when changing the content of the NSComboBox (internal cells, not data source), the…
Laurent Crivello
  • 3,809
  • 6
  • 45
  • 89
0
votes
1 answer

CoreData and the NSComboBox

I have a Mac application that uses CoreData. I have 1 entity "Employee" with 2 attributes, employeeName and employeePin. I have a drawer window that is used to add employees as well. I want an NSComboBox to be populated with the employeeName…
Green Developer
  • 187
  • 4
  • 18
0
votes
2 answers

Make NSComboBox Appear when NSTextField is clicked

How can I make an NSComboBox disappear when an NSTextField is clicked? This is the code I'm using: Class comboBox: (used as custom class for my NSComboBox in the interface builder) comboBox.h: #import @interface comboBox1 :…
rambodrahmani
  • 99
  • 4
  • 12
0
votes
1 answer

NSComboBox set to Placeholder string display

I'm trying to display the placeholder string on the NSComboBox when an operation is failed. How to achieve this ? If I choose an item at index 1 and comboBoxSelectionDidChange:(NSNotification *)notification is called. If the condition fails I…
DesperateLearner
  • 1,115
  • 3
  • 19
  • 45
0
votes
2 answers

Binding to NSComboBox

I am very new to Cocoa and I am developing one normal Cocoa desktop application in Xcode 4.5. I have a requirement to display values in NSComboBox and I have to retrieve from NSComboBox, but restriction is that I should not do bindings to…
user2118335
  • 1
  • 1
  • 5
0
votes
1 answer

How to programmatically create an NSComboBox

i have a view. how do i create a NSComboBox programmatically
Manju Basha
  • 665
  • 1
  • 9
  • 29
0
votes
1 answer

NSComboBox with bindings to NSTreeController

I have a NSTreeController/NSOutlineView with children and a NSComboBox. I would like to only show the top level objects in the combobox and not the children. Can't figure out how to do this. Any suggestions?
Mikael
  • 3,572
  • 1
  • 30
  • 43
0
votes
1 answer

Dynamic NSCombobox

I'm creating an application in which I have several entities and now I need to filter the content of third combobox dynamically. I explain myself better. I have 3 combobox (building, floor and department), I would like first to show me all the…
0
votes
2 answers

nsmutablearray elements to nsstring

I want to retrieve elements that are parsed in a NSMutableArray and store them into a NSString variable and then store them in NSMutableArray as NSString (because I want to display the content in a NSComboBox). I tried this but it dosen't work. Can…
Wael
  • 71
  • 5
0
votes
1 answer

Have a NSComboBox to update when its bound NSMutableArray updates

Let's say I have a window with 2 combo boxes. The NSWindowController that control the window, has two mutable arrays that are bound to the combo boxes Content Values. What I would like is that while the first combo box has fixed values, the second…
Pinco Pallino
  • 916
  • 1
  • 6
  • 18
0
votes
2 answers

How to display data in a nscombobox in cocoa?

I have an NSComboBox in my mainmenunib file. I have created an outlet of combobox "cb" and made a connection of it with my delegate I also connected delegate and datasource with my delegate. -(void)applicationDidFinishLaunching:(NSNotification…
user1295948
  • 303
  • 1
  • 5
  • 15
1 2 3 4 5 6 7
8