According to http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSNumberFormatter_Class/Reference/Reference.html
:
****
An even simpler way to cause negative values to be displayed in red is
to include the constant [Red] in your format string, as shown in this
example:
[numberFormatter setFormat:@"$#,##0.00;[Red]($#,##0.00)"];
****
Can any other colors be used here, or is it just red?
If other colors are allowed, is it a fixed set, or does it
automagically create a color from a NSColor class method with the
correct name
e.g:
[numberFormatter setFormat:@"$#,##0.00;[DarkGray]($#,##0.00)"];
Would use +[NSColor darkGrayColor].
Matt
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]