It's a good idea to use [ code ] (without the spaces) tags around your code to prevent the insertion of 🙁
That method only gets called if the object that it is a member of is instantiated and set as the NSApplication delegate. Are you doing that (if so where). Personally I normally create an instance of my application delegate and connect it in MainMenu.nib.