Matt Gemmell

My new book CHANGER is out now!

An action-thriller novel — book 1 in the KESTREL series.

★★★★★ — Amazon

Setting the text color of an NSButton

development & source 1 min read

I wrote a little category on NSButton tonight to allow getting/setting the color of the label text, e.g. on checkboxes and such. Handy for putting controls in HUD Windows, where you’ll usually want white text instead of the default black.

Since the code is so short, I decided to make it the inaugural entry on pastebuffer.com, a repository of code-snippets I hope to add to regularly. Feel free to check it out.