Hi Laurent, I'm not sure it's a bug or I'm doing something wrong. Anyway,I created a new bug with the project attached.

https://www.macruby.org/trac/ticket/656

On Sun, Apr 18, 2010 at 1:18 AM, Laurent Sansonetti <lsansonetti@apple.com> wrote:
Hi Daniel,

Could you reduce the problem into a simple Xcode project and attach it to a Trac bug? Would be easier for us to investigate :)

Thanks,

Laurent

On Apr 17, 2010, at 8:11 PM, Daniel Lopes wrote:

Hello, I have a model Person with two accessors, one is initialized as float. In Interface builder I did a bound between accessor and a TableColumn (which one have a NumberFormatter). Everything ok but when I try store in with NSKeyedArchiver.archivedDataWithRootObject it fails saying:

Exception detected while handling key input.
can't convert NSDecimalNumber into Float
*** -[NSKeyedArchiver finalize]: warning: NSKeyedArchiver finalized without having had -finishEncoding called on it.

What I'm doing wrong? I should cast it or initialize the value as NSDecimalNumber instead of float?

Thanks.
_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel