I know that we can set a colored title for a button using attributed strings like this:

```
let style = NSMutableParagraphStyle()
style.alignment = .Center
button.attributedTitle = NSAttributedString(string: "title",
             attributes: [ NSForegroundColorAttributeName : NSColor.redColor(),
                    NSParagraphStyleAttributeName : style])

```

In fact that's how I'm getting the red title to begin with, but it has no effect on the title color in the disabled mode (it is always gray); I guess in order to set that, I have to create an instance of the `NSButton` class and override some of its methods related to title color or override some of its properties to disable user interactions(when necessary) instead of disabling the button, but I don't know how. 

There are some possible objective-C answers to this question [here](https://stackoverflow.com/questions/26863487/nsbutton-disabled-title-color-always-gray), [here](https://stackoverflow.com/questions/6387138/why-the-text-of-a-disabled-nsbutton-or-nsbuttoncell-is-gray?rq=1) and [here](https://stackoverflow.com/questions/6397077/is-there-a-way-to-prevent-text-from-becoming-gray-when-i-disable-a-button?rq=1).