Skip navigation.
 
mlRe: Forcing Black on RTF Text generated from NSAttributedString
FROM : R. Scott Thompson
DATE : Fri Dec 10 20:52:34 2004

On Dec 10, 2004, at 1:47 PM, Ali Ozer wrote:

> I think if you put a variant of black in the attributed string that
> doesn't compare isEqual: to [NSColor blackColor], it will get through.
>  Simplest way might be to create a black with [NSColor
> calibratedColorWithRed:green:blue:alpha:], rather than using [NSColor
> blackColor].


Thanks, Ali.

I did get this to work using [NSColor
calibratedColorWithRed:green:blue:alpha:].  I managed to get it stuck
into application as the RTF text goes out to the database so it only
affects the stuff in the database.  It works well enough.

I've run into other problem that makes me think RTF is a pretty
wretched way to exchange styled text with Windows... or at least with
our Windows code :-)

Scott

Related mailsAuthorDate
mlForcing Black on RTF Text generated from NSAttributedString R. Scott Thompson Dec 9, 18:56
mlRe: Forcing Black on RTF Text generated from NSAttributedString Douglas Davidson Dec 9, 20:55
mlRe: Forcing Black on RTF Text generated from NSAttributedString John Stiles Dec 9, 22:40
mlRe: Forcing Black on RTF Text generated from NSAttributedString Andrew Farmer Dec 10, 00:45
mlRe: Forcing Black on RTF Text generated from NSAttributedString John Stiles Dec 10, 01:03
mlRe: Forcing Black on RTF Text generated from NSAttributedString R. Scott Thompson Dec 10, 02:30
mlRe: Forcing Black on RTF Text generated from NSAttributedString Ali Ozer Dec 10, 20:47
mlRe: Forcing Black on RTF Text generated from NSAttributedString R. Scott Thompson Dec 10, 20:52