Re: [MacRuby-devel] floats in core data

2009-11-28 Thread John Shea
Hi Laurent, (sorry for the longish post) I did some simple tests where the bound variable is not actually bound to a CoreData store, but to a method in the custom NSManagedObject class.. (btw - I am not sure if anyone else noticed but a difference between 0.4 and 0.5, is that when binding to c

Re: [MacRuby-devel] floats in core data

2009-11-27 Thread Laurent Sansonetti
Hi John, This may be a bug in MacRuby, I don't know bindings well enough. It would be cool if you could reduce the problem into a small Ruby script. We are indeed unboxing NSNumbers automatically. NSDecimalNumber seems to be left untouched, which could explain why the normal arithmetic op

[MacRuby-devel] floats in core data

2009-11-27 Thread John Shea
Hi all, does any one know whether there is an issue with binding to floats, doubles in core data with macruby? For example: 1 I firstly, create an attribute foo which is set as a double or a float in the core data model 2. i bind it to a table column 3. I set foo to 300.3 in code (not through