[MacRuby-devel] Float bind and NSDecimalNumber

Daniel Lopes danielvlopes at gmail.com
Sat Apr 17 20:11:42 PDT 2010


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20100418/d341c681/attachment.html>


More information about the MacRuby-devel mailing list