Open subdigital opened 3 years ago
originally written by Aaron Wright on 01/19/2015 04:51:44
A nice clean way to handle this with bindings is to use a custom NSValueTransformer. Then you can bind BOTH fields to fahrenheit and simply set the custom value transformer for the binding on the celsius field. Now the converter will work both directions!! Here is a fork of this episodes code that demonstrates the idea: https://github.com/acwright...
Written on 03/30/2015 19:42:49
URL: https://nsscreencast.com/episodes/152-cocoa-bindings