• 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
Little problem with NSFormatter way of working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 ?


  • Follow-Ups:
    • Re: Little problem with NSFormatter way of working
      • From: "Erik M. Buck" <email@hidden>
    • Re: Little problem with NSFormatter way of working
      • From: Stéphane Sudre <email@hidden>
  • Prev by Date: Re: Displaying an alert box
  • Next by Date: Re: java
  • Previous by thread: NSCells in NSCells in NSTableView?
  • Next by thread: Re: Little problem with NSFormatter way of working
  • Index(es):
    • Date
    • Thread