Re: Using NSTextField value without changing focus?
Re: Using NSTextField value without changing focus?
- Subject: Re: Using NSTextField value without changing focus?
- From: Markus Spoettl <email@hidden>
- Date: Tue, 11 Sep 2012 11:59:30 +0200
On 9/11/12 11:44 AM, Koen van der Drift wrote:
I am using a bunch of textfields for user entry and an NSButton to start a
calculation with the values entered. I noticed that the values are only used
when the user changes to focus to another control. So, if in one textfield
the value is changed from 1 -> 2, and the user immediately hits the Calculate
button, the value 1 is used instead of 2.
In IB, set the action to either 'Send on end editing' and 'Send on enter
only', but neither one uses the updated value unless the focus goes to
another control first.
Is there a way to do this?
You probably want "Continuous" in the "Control" section.
Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________
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