• 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 text binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSComboBox text binding


  • Subject: Re: NSComboBox text binding
  • From: Marc Respass <email@hidden>
  • Date: Fri, 10 Nov 2006 14:35:51 -0500

You might also need ask the controller to commitEditing()

On Nov 10, 2006, at 2:31 PM, I. Savant wrote:

David:

While I'm not sure if this is exactly what you're looking for, it sounds like you need to check the "Continuously updates value" checkbox in your editors' value bindings.

--
I.S.


On Nov 10, 2006, at 2:09 PM, David Catmull wrote:

How do I get a combo box to update its value binding while an edit session is active? I have an NSComboBox's value bound to a value in an NSObjectController, and the problem is that the user's changes don't always get committed when I want them to.

Specifically, this is a Find dialog, and I'm using a combo box so I can have a history list of search terms. If the user types something and then clicks the Find button, rather than pressing return, then the find text binding doesn't get updated and it searches for the wrong text.

I can get around this by getting [findField stringValue] and putting that in the object controller before searching, but that kind of ruins the point of having bindings.

--
David Catmull
email@hidden
http://www.uncommonplace.com/

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >NSComboBox text binding (From: David Catmull <email@hidden>)
 >Re: NSComboBox text binding (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: NSComboBox text binding
  • Next by Date: Re: NSComboBox text binding
  • Previous by thread: Re: NSComboBox text binding
  • Next by thread: Re: NSComboBox text binding
  • Index(es):
    • Date
    • Thread