NSTableColumn alignment
NSTableColumn alignment
- Subject: NSTableColumn alignment
- From: Daniel Todd Currie <email@hidden>
- Date: Mon, 14 Jun 2004 00:44:34 -0700
Does anyone have any grand ideas on how to vertically align float
values in an NSTableColumn to the decimal point?
The way I've been (sort of) doing it, is by enumerating through the
data source and finding the largest value, and then enumerating through
it again, setting the record to an NSAttributedString with a first line
head indent paragraph style that is based on the largest value. But
then I run into all sorts of issues that need to be dealt with
individually, like the mixed scientific/float notation used with
numbers in the billions or billionths, and numbers with no decimal
points, and I would like to support scientific notation, engineering
notation (scientific notation with all exponents in multiples of 3),
mixed notations, and float notation, and it just gets uglier and uglier
and uglier. Cocoa/Obj-C is not supposed to be this ugly.
Any ideas would be super. TIAA,
-- Daniel Todd Currie
_______________________________________________
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.