Using NSTextField value without changing focus?
Using NSTextField value without changing focus?
- Subject: Using NSTextField value without changing focus?
- From: Koen van der Drift <email@hidden>
- Date: Tue, 11 Sep 2012 05:44:23 -0400
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?
- Koen.
_______________________________________________
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