Documentation Archive Developer
Search
PATH  Documentation > WebObjects 4.5 > Getting Started With WebObjects


   

Setting a Number Format

In addition to a dateformat attribute, text field elements also have a numberformat attribute.

  1. Inspect the revenue text field.

    The revenue text field's numberformat attribute has no binding.

  2. Using the combo box, change the text field's numberformat binding value to "$###,##0".

    Using this number format, the Movies application formats the number 1750000 as $1,750,000. For more information on creating number formats, see the NSNumberFormatter class specification in the Foundation Framework Reference.


© 1999 Apple Computer, Inc. – (Last Updated 24 Aug 99)