Re: Detecting when NSComboBox text changed by list
Re: Detecting when NSComboBox text changed by list
- Subject: Re: Detecting when NSComboBox text changed by list
- From: James Walker <email@hidden>
- Date: Fri, 31 Oct 2008 14:59:14 -0700
Kyle Sluder wrote:
On Fri, Oct 31, 2008 at 4:14 PM, James Walker <email@hidden> wrote:
At step 2, comboBoxSelectionDidChange is called, but the text field has not
yet changed.
Actually, it has changed. Look into the NSEditor and
NSEditorRegistration protocols.
Huh? I'm staring at the combo box and I can see that the text has not
changed. In fact at that point, it is still possible to dismiss the
list without changing the text.
Actually, things seem to be even worse than I indicated in my previous
message. The comboBoxWillDismiss may come before or after the text
change, depending on whether the selection is made with the return key
or the mouse.
Maybe what I'll do is give up on finding out immediately that the text
has changed, and watch for controlTextDidEndEditing instead. I'm not
sure, but maybe that's similar to what you meant about NSEditor.
--
James W. Walker, Innoventive Software LLC
<http://www.frameforge3d.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden