title: Checking state of Caps Lock in Cocoa
body: <p>OK. I'm starting my first OS X application.  Instead of doing something obvious or simple, I'm going straight to the system stuff.</p>
  
  <p>I would like to place a caps lock indicator in the menu bar.  In C# or Delphi (my primary languages) this is fairly trivial. In Mac OS X, I'm not really sure where to start. Of course I've downloaded Xcode and written a few little nothing style apps. Now I need to write an app that will run on start, only have a menu bar component, and work.</p>
  
  <p>There's my background.  How can I get the state of the caps lock key in Cocoa?</p>