Answer by CRD for Replacing NSColor with another in NSAttributedString
Short Answer: Make your own "adaptable" colors. Long Answer Make a subclass of NSColor which has two readonly (to keep with NSColor being immutable) instance NSColor properties for the standard and...
View ArticleReplacing NSColor with another in NSAttributedString
I am trying to replace one color with another in NSAttributedString to enable a dark mode in a pre-Mojave-app. I have a long NSTextView which holds the string. Is there any way to remap or mutate the...
View Article
More Pages to Explore .....