Projects

Ticket #656 (closed defect: fixed)

Opened 22 months ago

Last modified 22 months ago

NSCoder encodeFloat and decodeFloatForKey doesn't with ruby float

Reported by: danielvlopes@… Owned by: lsansonetti@…
Priority: major Milestone: MacRuby 0.6
Component: MacRuby Keywords: NSCoder Float
Cc:

Description

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).

Attachments

RaiseMan.zip Download (58.8 KB) - added by danielvlopes@… 22 months ago.
Hillegass example for archiving feature

Change History

Changed 22 months ago by danielvlopes@…

Hillegass example for archiving feature

Changed 22 months ago by martinlagardette@…

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from MacRuby 0.5 to MacRuby 0.6

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  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  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.

Note: See TracTickets for help on using tickets.