• 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
[ANN] Fraction Formatter source code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ANN] Fraction Formatter source code


  • Subject: [ANN] Fraction Formatter source code
  • From: Timothy Ritchey <email@hidden>
  • Date: Wed, 6 Nov 2002 14:24:10 -0500

For anyone interested, I have placed my Fraction Formatter code on my homepage at:

http://homepage.mac.com/tritchey

under the file RRFractionFormatter.dmg

This class is an NSFormatter that supports the display of fractional numbers. It includes a new NSNumber class RRFractionNumber that supports conversion between decimal, fractions and string representations. Using this formatter, you can enter "1 3/4" or "1.75" in a text field and get the same fraction displayed. The disk image includes a very small screenshot showing how the numbers look (the fractional part of the number uses a smaller font, with the numbers offset and over one another).

I am using for a woodworking application to general cutlists and part layouts, but it might also be useful for stock tickers, etc.

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

  • Prev by Date: Re: spaces in pahts
  • Next by Date: Re: To all cocoa developers - new cocoa dev forum
  • Previous by thread: Re: spaces in pahts
  • Next by thread: RgnHandle replacement?
  • Index(es):
    • Date
    • Thread