0

Hi i have a NS TexView:

    [risultato setString:[NSString stringWithFormat:@"%@\n<Ricetta>\n\t<numero>%@</numero>\n\t<fbimage>http://www.aletrnativeindustries.it/piccole_ricette/%@.png</fbimg>\n\t<foto>%@.png</foto>\n\t<nome>%@</nome>\n\t<dose>X%@</dose>\n\t<tempo>%@</tempo>\n\t<ricetta>%@</ricetta>\n</Ricetta>\n", prec, number, photo, photo, title, dos, time, ric]];


    risultato.textColor = [NSColor redColor];

With the last instruction i change all color in red, but if i want that some text stay black? i need that prec, number, photo, photo, title, dos, time, rid stay black. prec, number.... are NSString.

Acunamatata
  • 55
  • 2
  • 9

1 Answers1

0

You need to create an NSAttributedString.

Williham Totland
  • 28,471
  • 6
  • 52
  • 68