Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting when NSComboBox text changed by list



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Detecting when NSComboBox text changed by list (From: James Walker <email@hidden>)
 >Re: Detecting when NSComboBox text changed by list (From: Dave Fernandes <email@hidden>)
 >Re: Detecting when NSComboBox text changed by list (From: James Walker <email@hidden>)
 >Re: Detecting when NSComboBox text changed by list (From: "Kyle Sluder" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.