#473: setObjectValue does not set floats, integers in NSTextFields properly.
-----------------------------------------+----------------------------------
Reporter: johnmacs...@… | Owner: eloy.de.en...@…
Type: defect | Status: closed
Priority: major | Milestone: MacRuby 0.6
Component: MacRuby | Resolution: fixed
Keywords: NSTextField, setObjectValue |
-----------------------------------------+----------------------------------
Changes (by lsansone...@…):
* status: new => closed
* resolution: => fixed
* milestone: => MacRuby 0.6
Comment:
As Matthias noticed, this bug seems to be fixed in trunk (at least as of
r3494).
{{{
$ cat t.rb
framework 'Cocoa'
tf = NSTextField.alloc.init
num = NSNumber.numberWithFloat(23.3)
tf.setObjectValue(num)
p tf.stringValue
$ ./miniruby t.rb
"23.29999923706055"
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/473#comment:3>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel