Display and select supported resolutions in objective-c?
===

I'm a bit annoyed that the display menulet in Mountain Lion no longer lets you adjust the screen resolution.

So I'm working on a simple menulet using NSStatusItem, but I've never really delved into the world of adjusting the display resolution. 

How can I create a simple menu which will list a screen's supported resolutions and change to that one when you select it?