[ANN] Fraction Formatter source code
[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.