I want to change the color of ALL text in an NSTextView. I currently have the code:
NSMutableDictionary* fontAttributes = [[NSMutableDictionary alloc] init]; [fontAttributes setObject: newColour forKey:NSForegroundColorAttributeName]; [self setTypingAttributes:fontAttributes];
... but this only changes the color of the text entered after setting the attributes.
Is there an easy way to change the color of all text in a view, and not just what is inserted into insertionPoint?
source share