Little problem with NSFormatter way of working
Little problem with NSFormatter way of working
- Subject: Little problem with NSFormatter way of working
- From: Stéphane Sudre <email@hidden>
- Date: Mon, 15 Oct 2001 12:24:04 +0200
I'm facing a little problem with the NSFormatter stuff.
I have a NSTextField and a NSPopUpButton
Attached to the NSTextField is a NSNumberFormatter which allows integer
from 1 to 99.
The NSPopUpButton can disable the NSTextField from one of its item.
The problem is the following one
* I have the value 10 in the NSTextField.
* I change it to 20 (I don't hit the return key)
* I use the PopUpButton and it disables the NSTextField
Problem:
the value in the NSTextField is back to 10.
If I use the PopUpButton with an item that doesn't disable the
NSTextField, the value is kept to 20 and if I then disable the
NSTextField, the value is still 20.
I thought the problem was from one of my formatters so I switched to a
NSFormatter and the problem still occurs.
Am I missing something or it's a bug ?