From: <mon...@ma...> - 2007-08-25 17:21:42
|
Hi I'm trying to write an importer for Core-data from mysql. when I try and pass a field that has a value of decimal in mysql, I get the following error. 2007-08-25 18:15:50.350 accounts_v1[5839] Importer#importCategories: OSX::OCException: NSInvalidArgumentException - Unacceptable type of value for attribute: property = "rate"; desired type = NSDecimalNumber; given type = <RBObject: 0x452a0>; value = <RBObject: 0x2aba990>. it works fine for the strings, Is there a way I can force the ruby class to return the correct objective C type for the accessor "rate" ? thanks RD |