Loading Settings.bundle to fill in NSUserDefaults
This isn't my code but I wanted to share a snippet that really helped me out today. I wanted to set default fields for NSUserDefaults and have a Settings.bundle file for my app so those same preferences can be set through Settings.app. Instead of using registerDefaults and duplicating those values, this code will read and set your defaults from Settings.bundle. Some tweaking is required to determine if the settings are saved (the name key).

