swift - textShouldEndEditing does not work with stepper -


i working swift 4 macos , have view controller content:

i have textfield , stepper. can change value of textfield manually or stepper.

i print result, if value of textfield did change. tried delegate methode:

func control(_ control: nscontrol, textshouldendediting fieldeditor: nstext) -> bool {     print("value changed")        return true  } 

if change manually => "value changed"

if change stepper => no "value changed"

how can solve issue?

the stepper doesn't edit textfield. if change value of textfield in code you're aware of change.


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -