bugGNUstep - Bugs: bug #17955, Archive NSDecimalNumber

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #17955: Archive NSDecimalNumber

Submitted by:  pavel moravec <pavamora>
Submitted on:  Mon 09 Oct 2006 06:27:04 PM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Mon 18 Dec 2006 03:44:04 PM UTC, comment #3:

Closed as this should be ok now.

Richard Frith-Macdonald <CaS>
Project Member
Mon 16 Oct 2006 06:42:11 AM UTC, comment #2:

Interesting one ... The MacOS-X documentation says that NSDecimalNumber does not conform to the NSCoding protocol, and GNUstep followed that.
In theory, that means that attempting to archive an NSDecimalNumber should fail, raising an exception.

However, I tested this on MacOS-X and found that encoding an NSDecimalNumber there works in spite of what the documentation says ... so I implemented a simple coding/decoding mechanism for NSDecimalNumber in GNUstep-base.

Please give it a try and let me know how you get on.

Richard Frith-Macdonald <CaS>
Project Member
Mon 16 Oct 2006 04:42:03 AM UTC, comment #1:

It would be helpful to know how, exactly, it fails.

Gregory John Casamento <gcasa>
Project Administrator
Mon 09 Oct 2006 06:27:04 PM UTC, original submission:

I'm using GNUstep gnustep-base-1.12.0

The following sequence does not work:

[NSArchiver archiveRootObject: [NSDecimalNumber decimalNumberWithString:@"1"] toFile: @"./save.data"];

It's normal ?

pavel moravec <pavamora>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by CaS (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 18 Dec 2006 03:44:04 PM UTCCaSOpen/ClosedOpen=>Closed
    Mon 16 Oct 2006 06:42:11 AM UTCCaSStatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1