Here is a quick tip to help you debug your Preference Pane with Xcode, because debugging with NSLog() is painful and not very productive. So, open your project with Xcode, go to the Project menu and chose News Custom Executable. In the Executable Path field, chose /Applications/System Preferences, and for the name of the executable, chose whatever you want. Now you can put…