I have bunch of preference values registered via [NSUserDefaults registerDefaults:]
call on application startup. I need to replace them at some stage with new o
You can use removeVolatileDomainForName:
to remove the NSRegistrationDomain
. This clears all values registered via registerDefaults:
. But if you need to do this you’re most likely doing something wrong. The right way would be to actually store the new settings using one of the set...:forKey:
methods.