error "FoundationConversion: NXLocalHandler has been replaced by localException, an instance of NSException"
replace "NXHandler" with same
error "FoundationConversion: The NXHandler structure has been replaced by NSException objects."
replace "NXSetUncaughtExceptionHandler" with "NSSetUncaughtExceptionHandler"
warning "FoundationConversion: This used to call NXSetUncaughtExceptionHandler. Please make sure that the function you are passing takes an (NSException *) instead of the old arguments."
replace "NXGetUncaughtExceptionHandler" with "NSGetUncaughtExceptionHandler"
warning "FoundationConversion: This used to call NXGetUncaughtExceptionHandler. The uncaught exception handler now takes a single (NSException *) argument. Make sure your code is aware of it if necessary."
replace "NXUncaughtExceptionHandler" with "NSUncaughtExceptionHandler"
error "FoundationConversion: The NXUncaughtExceptionHandler function typedef has been replaced by NSUncaughtExceptionHandler. Be aware that the arguments passed to these handlers have changed. NSUncaughtExceptionHandler functions now take a single (NSException *) argument."
replace "NSGetWindowServerMemory(<b args>)" with "NSGetWindowServerMemory(<b args>)"
error "FoundationConversion: The last argument has been converted to a pointer to a pointer to an NSString."
/*********** NXBundle Conversion *************/
/* many are too generic for replacemethod conversion */
replacemethod "initForDirectory:" with "initWithPath:"
/* directory has already undergone string conversion (for SavePanel) */
replace "[[NXBundle bundleForClass:<class>] directory]" with "[[NSBundle bundleForClass:<class>] bundlePath]"
warning "FoundationConversion: The NSBundle bundlePath method returns the top-level directory of the bundle. With the new bundle scheme, resources are installed in a subdirectory of the bundlePath (called Resources) instead of directly in the bundlePath. If you are using the bundlePath to build paths to resources within your bundle, you should try to use pathForResource:ofType: instead."
replace "[[NXBundle mainBundle] directory]" with "[[NSBundle mainBundle] bundlePath]"
warning "FoundationConversion: The NSBundle bundlePath method returns the top-level directory of the bundle. With the new bundle scheme, resources are installed in a subdirectory of the bundlePath (called Resources) instead of directly in the bundlePath. If you are using the bundlePath to build paths to resources within your bundle, you should try to use pathForResource:ofType: instead."
replace "[[NXBundle mainBundle] setVersion:<version>]" with "[[NSBundle mainBundle] setBundleVersion:<version>]"
replace "[[NXBundle bundleForClass:<class>] setVersion:<version>]" with "[[NSBundle bundleForClass:<class>] setBundleVersion:<version>]"
replace "[[NXBundle mainBundle] version]" with "[[NSBundle mainBundle] bundleVersion]"
replace "[[NXBundle bundleForClass:<class>] version]" with "[[NSBundle bundleForClass:<class>] bundleVersion]"
/* getPath:forResource:ofType: handled in string conversion */
replace "NXBundle" with "NSBundle"
replace "\<objc/NSBundle.h>" with "<Foundation/NSBundle.h>"