codykrieger/gfxCardStatus — pull request #83 by zwaldowski (2012-07-06 06:07:08+00:00)
Title: Code-only Notification Center support.

Hey, here's a scratch-my-own-OCD-itch patch to add Notification Center support. It depends on the 10.8 SDK (as does the rest of the codebase), but will continue to run against Growl on 10.7. Growl support (by way of the application bridge) is never initialized if running on 10.8.

There are a couple of things that would need to be changed to constitute "full" support, in addition to this patch. The preferences text could be changed simply to read "Display GPU change notifications". I tried, but I don't understand that many languages, sorry. Removing the checkbox on 10.8 entirely is an option as well, since the Notifications pane in System Preferences is far more intuitive than the respective Growl panel, and might be better than even the Preference window. Ideally for code cleanliness, Growl references in the code could be factored out entirely, though that might cause some problems with the preference file.

Cheers!