• 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
NSTableColumn alignment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Semi-OT: Big Nerd Ranch Happy Hour at WWDC 2004 (Modified by Emily Herman)
  • Next by Date: Re: POST request without NSURLConnection
  • Previous by thread: Semi-OT: Big Nerd Ranch Happy Hour at WWDC 2004 (Modified by Emily Herman)
  • Next by thread: Button for switching mode/tools for NSToolbar
  • Index(es):
    • Date
    • Thread