• 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
Re: NSComboBox problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSComboBox problem


  • Subject: Re: NSComboBox problem
  • From: Bruno Gaufier <email@hidden>
  • Date: Thu, 4 Sep 2003 19:57:17 +0200

Hi,

On Thursday, September 4, 2003, at 05:56 PM, Jeff Schneiderman wrote:

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?

The NSComboBox will call methods of its delegate depending on what append (You can also
use the notification center).

Try creating a method with this signature on your combo's delegate
- (void)textDidEndEditing:(NSNotification*)pNotif

In this case you can get the combo (text) content via
aString = [yourCombo stringValue];
just as you've already done. It should work (probably) because
the NSTextField's delegate method is called sooner.

--
Bruno Gaufier
----
email@hidden
email@hidden

http://perso.club-internet.fr/bgaufier/
_______________________________________________
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.

References: 
 >NSComboBox problem (From: "Jeff Schneiderman" <email@hidden>)

  • Prev by Date: RE: Simple way to find out baseline for NSAttributedString?
  • Next by Date: Re: programmatically decompress lzw data
  • Previous by thread: NSComboBox problem
  • Next by thread: RE: NSComboBox problem
  • Index(es):
    • Date
    • Thread