replacemethod "pasteboardByFilteringData:(NXData *)data ofType:(NSString *)type" with same {
replace "<data_type>" with "(NSData *)"
}
error "StreamConversion: 'pasteboardByFilteringData:ofType:' (used to be 'pasteboardByFilteringData:ofType:') now takes 'NSData *' as its first argument (used to take 'NXData *')."
replace "[<pboard> readType:NSStringPboardType data:<data> length:<length>]" with "<data> = [<pboard> stringForType:NSStringPboardType]"
error "StreamConversion: 'stringForType:' (used to be 'readType:data:length:') returns an NSString instance"
replace "[<pboard> readTypeToStream:NSStringPboardType]" with "<data> = [<pboard> stringForType:NSStringPboardType]"
error "StreamConversion: 'stringForType:' (used to be 'readTypeToStream:') returns an NSString instance (used to return an NXStream)"
replace "[<pboard> writeType:NSStringPboardType fromStream:<stream>]" with "[<pboard> setString:<stream> forType:NSStringPboardType]"
error "StreamConversion: 'setString:forType:' (used to be 'writeType:fromStream:') takes NSString instance (used to take an NXStream)"
replacemethod "readType:data:<2> length:<3>" with "dataForType:" {
replace "<rettype>" with "(NSData *)"
replace "<call>" with "<2_arg> = <call>"
}
error "StreamConversion: 'dataForType:' (used to be 'readType:data:length:') returns an NSData instance"
replacemethod "readTypeToStream:<type>" with "dataForType:<type>" {
replace "<rettype>" with "(NSData *)"
}
error "StreamConversion: 'dataForType:' (used to be 'readTypeToStream:') returns an NSData instance (used to return NXStream)."
replacemethod "writeType:<1> data:<2> length:<3>" with "setData:<2> forType:<1>" {
replace "<rettype>" with "(BOOL)"
replace "<2_type>" with "(NSData *)"
replace "<2_arg>" with "[NSData dataWithBytes:<2_arg> length:<3_arg>]"
}
replacemethod "writeType:<1> fromStream:<2>" with "setData:<2> forType:<1>" {
replace "<rettype>" with "(BOOL)"
replace "<2_type>" with "(NSData *)"
}
error "StreamConversion: 'setData:forType:' (used to be 'writeType:fromStream:') takes an NSData instance as its first argument (used to take NXStream)."
replacemethod "deallocatePasteboardData:length:" with same
error "StreamConversion: 'deallocatePasteboardData:length:' no longer exists and never needs to be called"
replace "NSFilenamesPboardType" with same
error "StreamConversion: NSFilenamesPboardType used to be NXFilenamePboardType. Pasteboard data of type NSFilenamesPboardType will be an NSArray of NSString. Use 'setPropertyList:forType:' and 'propertyListForType:'"
/*********** NSDataConversion: View and Window ***********/
replacemethod "copyPSCodeInside:<1>to:<2>" with "dataWithEPSInsideRect:<1>" {
replace "<rettype>" with "(NSData *)"
replace "<call>" with "<2_arg> = <call>;"
}
error "StreamConversion: 'dataWithEPSInsideRect:' (used to be 'copyPSCodeInside:to:') returns an NSData instance (used to recieve an NXStream)"