[MacRuby] #656: NSCoder encodeFloat and decodeFloatForKey doesn't with ruby float
#656: NSCoder encodeFloat and decodeFloatForKey doesn't with ruby float ------------------------------------+--------------------------------------- Reporter: danielvlopes@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: NSCoder Float ------------------------------------+--------------------------------------- I'm not sure it's a bug or I'm doing something wrong but how Laurent asked, I post it as ticket here. The code attached is just one example of Hillegass book converted to MacRuby. If you create a new person's in the TableView and try save will raise a warning saying that NSDecimal?Number can't be coerced in Float (the textfield of TableView uses a NSNumberFormatter). -- Ticket URL: <http://www.macruby.org/trac/ticket/656> MacRuby <http://macruby.org/>
#656: NSCoder encodeFloat and decodeFloatForKey doesn't with ruby float ------------------------------------+--------------------------------------- Reporter: danielvlopes@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: major | Milestone: MacRuby 0.6 Component: MacRuby | Resolution: fixed Keywords: NSCoder Float | ------------------------------------+--------------------------------------- Changes (by martinlagardette@…): * status: new => closed * resolution: => fixed * milestone: MacRuby 0.5 => MacRuby 0.6 Comment: Hi Daniel! Thanks for the bug report. Thanks to it, we found two bugs (unrelated to the one you filed) in MacRuby 0.6 (one bug fixed in r3949 and [http://www.macruby.org/trac/ticket/661 a regression] fixed in r3953). However, your bug doesn't seem to appear with the newest version (you can try the latest version by downloading [http://www.macruby.org/files/nightlies/ a nightly]). I tried adding two persons, changing both values for the two entries, saving, undoing, saving, etc., no exception, no warning, nothing :-). I'll assume it is fixed and close the bug. -- Ticket URL: <http://www.macruby.org/trac/ticket/656#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby