PDA

View Full Version : Rich text in NSLabel




FredT
Jun 5, 2009, 04:43 PM
Hi,

I need to display superscript text (exponents) in an NSLabel object. Is there any way I can do this? I've read about using RTF or HTML in NSLabel, but I'm new at Cocoa/Mac Programming and I can't seem to figure it out.

Thanks



kpua
Jun 5, 2009, 05:26 PM
Take a look at NSAttributedString (both the Foundation and AppKit Additions reference) and NSTextField (there is no NSLabel class).