[MacRuby-devel] [MacRuby] #473: setObjectValue does not set floats, integers in NSTextFields properly.

MacRuby ruby-noreply at macosforge.org
Thu Feb 11 16:37:55 PST 2010


#473: setObjectValue does not set floats, integers in NSTextFields properly.
-----------------------------------------+----------------------------------
 Reporter:  johnmacshea@…                |        Owner:  eloy.de.enige@…        
     Type:  defect                       |       Status:  closed                 
 Priority:  major                        |    Milestone:  MacRuby 0.6            
Component:  MacRuby                      |   Resolution:  fixed                  
 Keywords:  NSTextField, setObjectValue  |  
-----------------------------------------+----------------------------------
Changes (by lsansonetti@…):

  * 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/>



More information about the MacRuby-devel mailing list