• 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: Detecting when NSComboBox text changed by list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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>)

  • Prev by Date: Padding Zeros...
  • Next by Date: Re: Padding Zeros...
  • Previous by thread: Re: Detecting when NSComboBox text changed by list
  • Next by thread: NSSecureTextField and umlauts
  • Index(es):
    • Date
    • Thread