title: NSTextField with Number Formatter not allowing decimal input
body: <p>I'm trying to make a simple Cocoa application where a number is input into a textfield.  When a number is typed into one textfield the other textfield will automatically update with another number (and vice versa).  The textfield that I've dragged into the window is the "Text Field with Number Formatter" from interface builder.  I have the textfields set as delegate which allows them to automatically update.  However, the formatting does not seem to work.  I can't input decimal numbers.  Please help!!!</p>
  
  <p>Header file here:</p>
  
  <pre><code>#import &lt;Cocoa/Cocoa.h&gt;
  
  @interface AppDelegate : NSObject &lt;NSApplicationDelegate&gt; {
      IBOutlet NSTextField *number1;
      IBOutlet NSTextField *number2;
  }
  
  @property (assign) IBOutlet NSWindow *window;
  
  @end
  </code></pre>
  
  <p>Implementation file here:</p>
  
  <pre><code>#import "AppDelegate.h"
  
  @implementation AppDelegate
  
  @synthesize window = _window;
  
  -(void)controlTextDidChange:(NSNotification *) note {
      NSTextField *changedField = [note object];
  
      if (changedField == number1) {
          float num1 = [number1 floatValue];
          [number2 setFloatValue: (num1*2.0)];
      }
  
      if (changedField == number2) {
          float num2 = [number2 floatValue];
          [number1 setFloatValue: (num2/2.0)];
      }
  }
  
  @end
  </code></pre>