NSComboBox problem
NSComboBox problem
- Subject: NSComboBox problem
- From: "Jeff Schneiderman" <email@hidden>
- Date: Thu, 4 Sep 2003 18:56:39 +0300
- Thread-topic: NSComboBox problem
I have an action method setup for an NSComboBox which is defined in my nib.
Upon being called, I do [comboField stringValue] to get the value. Everything
is cool.
This even works when I select a value from the combo popup as well.
The problem is the following:
When I open the popup, but type a value into the edit control and hit enter, I
get the value of the selected item in the popup rather than the string which I
just typed in the edit control.
I've tried deselecting the selection in the NSComboBox and it's cell upon
various notification delegates, but it just clears the edit control too.
How do I cause the popup to close when I start typing or cause my typed entry
into the edit control to take precedence over the selected value which is
activated when I hit enter?
Any ideas?
Jeff
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.