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: NSComboBox text binding



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

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

This email sent to email@hidden
References: 
 >NSComboBox text binding (From: David Catmull <email@hidden>)
 >Re: NSComboBox text binding (From: "I. Savant" <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.