• 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: Using NSTextField value without changing focus?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Using NSTextField value without changing focus?
      • From: Koen van der Drift <email@hidden>
References: 
 >Using NSTextField value without changing focus? (From: Koen van der Drift <email@hidden>)

  • Prev by Date: Using NSTextField value without changing focus?
  • Next by Date: Re: Using NSTextField value without changing focus?
  • Previous by thread: Using NSTextField value without changing focus?
  • Next by thread: Re: Using NSTextField value without changing focus?
  • Index(es):
    • Date
    • Thread