Quantcast
Channel: Replacing NSColor with another in NSAttributedString - Stack Overflow
Browsing latest articles
Browse All 2 View Live

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 Article



Replacing 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
Browsing latest articles
Browse All 2 View Live




Latest Images