with "[[[NSUserDefaults standardUserDefaults] objectForKey:[NSString stringWithCString:<default>]] cString]"
replace "NXGetDefaultValue(<owner>, <default>)"
with "[[[NSUserDefaults standardUserDefaults] objectForKey:[NSString stringWithCString:<default>]] cString]"
warning "DefaultsConversion: This used to be a call to NXGetDefaultValue with the owner <owner>. If the owner was different from your applications name, you may need to modify this code."
with "[[NSUserDefaults standardUserDefaults] setObject:[NSString stringWithCString:<value>] forKey:[NSString stringWithCString:<default>]]"
warning "DefaultsConversion: This used to be a call to NXSetDefault with the owner <owner>. If the owner was different from your applications name, you may need to modify this code."
warning "DefaultsConversion: If you were using NXReadDefault() to avoid searching the GLOBAL domain or to search a different domain than your app domain, you must set the NSUserDefault searchlist to the appropriate domains and use NSUserDefaults 'objectForKey:'"
/*********** DefaultsConversion: writing and removing (persistent) *************/
replace "NXRemoveDefault(<owner>, <default>)" with "[[NSUserDefaults standardUserDefaults] removeObjectForKey:[NSString stringWithCString:<default>]]"
warning "DefaultsConversion: [<NSUserDefaults> removeObjectForKey:...] used to be NXRemoveDefault(<owner>, <default>). Defaults will be synchronized within 30 seconds after this change. For immediate synchronization, call '-synchronize'. Also note that the first argument of NXRemoveDefault is now ignored; to write into a domain other than the apps default, see the NSUserDefaults API."
warning "DefaultsConversion: [<NSUserDefaults> setObject:...forKey:...] used to be NXWriteDefault(<owner>, <default>, <value>). Defaults will be synchronized within 30 seconds after this change. For immediate synchronization, call '-synchronize'. Also note that the first argument of NXWriteDefault is now ignored; to write into a domain other than the apps default, see the NSUserDefaults API."
replace "NXWriteDefaults(<b args>)" with same
error "DefaultsConversion: NXWriteDefaults() is obsolete; use 'setObject:forKey:' instead"
warning "DefaultsConversion: A call NXUpdateUserDefault() was converted here. However you seemed to be casting the old return value of NXUpdateDefault to a (char *), stripping the constness. The cast has been left out of the converted code. If you are really modifying the return value through this casted pointer, you must modify the code to make a copy of the character buffer."
replace "NXUpdateDefault(<owner>, <default>)" with "[[NSUserDefaults standardUserDefaults] synchronize];"
replace "NXUpdateDefaults()" with "[[NSUserDefaults standardUserDefaults] synchronize]"
replace "NXDefaultsVector <b defaults>;" with same
error "DefaultsConversion: the NXDefaultsVector type is obsolete. Construct a dictionary of default registrations and use the NSUserDefaults 'registerDefaults:' method"
replace "NXRegisterDefaults(<b args>)" with same
error "DefaultsConversion: NXRegisterDefaults() is obsolete. Construct a dictionary of default registrations and use the NSUserDefaults 'registerDefaults:' method"
/*********** DefaultsConversion: setting the user *************/
replace "NXSetDefaultsUser(<b args>)" with same
error "DefaultsConversion: NXSetDefaultsUser() is obsolete; use [[NSUserDefaults alloc] initWithUser:<user>] to read another users defaults"