From: <mon...@ma...> - 2007-08-25 21:39:48
|
ok, I'll make a sample and post it for you. thanks RD On 25 Aug 2007, at 21:56, Laurent Sansonetti wrote: > Hi, > > This might be a RubyCocoa bug. However it's hard to know. Would it be > possible to provide us a sample project that reproduces the problem? > That would be easier for us to investigate and fix. > > At least it seems that RubyCocoa can convert Bignum objects as long > long: > >>> NSNumber.numberWithLongLong(1_000_000_000_000).to_i > => 1000000000000 > > Laurent > > On Aug 25, 2007, at 7:21 PM, mon...@ma... wrote: > >> 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 >> >> --------------------------------------------------------------------- >> ---- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a >> browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Rubycocoa-talk mailing list >> Rub...@li... >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |