Re: NSComboBox problem
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.