• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSComboBox problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSComboBox problem
      • From: Bruno Gaufier <email@hidden>
  • Prev by Date: Using the "package" command-line tool.
  • Next by Date: Re: NSFileWrapper limitation
  • Previous by thread: Re: Using the "package" command-line tool.
  • Next by thread: Re: NSComboBox problem
  • Index(es):
    • Date
    • Thread