Search code examples
objective-cmacoscocoaantialiasingsubpixel

Disabling subpixel antialiasing for Cocoa apps


Is there a way to disable subpixel antialiasing for a single application written in Cocoa, programmatically or otherwise. I can set the global user defaults to set the level, even force it on for an external monitor, but I need a solution per-app that I can also distribute to others.


Solution

  • NSUserDefaults works by domains, so each NSUserDefault can have a system-wide value, an app-wide value, and so on. If you're able to set the global user defaults for this, simply instead set the same NSUserDefaults for your app only.

    What's the NSUserDefaults key you are using and how do you set it?