• 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
Number formatters, validateValueForKey & dirty editing contexts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Number formatters, validateValueForKey & dirty editing contexts


  • Subject: Number formatters, validateValueForKey & dirty editing contexts
  • From: Anthony Paras <email@hidden>
  • Date: Mon, 01 Dec 2003 18:54:04 -0500

I'm using WO 5.1.

I noticed that when you have a WOTextField bound to a Number and not a
BigDecimal, a numberformatter on that WOTextField will cause the editing
context to get dirty during the RR loop.

The validateValueForKey that happens during the RR loop is supposed to check
if values are the same and not update them if they are not, but it fails in
this case.  I am assuming that the formatter creates a BigDecimal, and they
are using equals() instead of insuring that  both values are BigDecimals and
using compareTo().

This is very annoying and I think it's a bug.  Anyone else have an opinion
on this?

- Tony
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Number formatters, validateValueForKey & dirty editing contexts
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: convert string to object?
  • Next by Date: cvs in xcode and packages (.eomodel, .wo,...)
  • Previous by thread: Re: Migration from windows to Mac
  • Next by thread: Re: Number formatters, validateValueForKey & dirty editing contexts
  • Index(es):
    • Date
    • Thread