bugGNUstep - Bugs: bug #17955, Archive NSDecimalNumber

Group
 
 

bug #17955: Archive NSDecimalNumber

Submitter:  pavel moravec <pavamora>
Submitted:  Mon 09 Oct 2006 06:27:04 PM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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

Closed as this should be ok now.

Richard Frith-Macdonald <CaS>
Group 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>
Group 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>
Group 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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2006-12-18 CaS Open/ClosedOpen Closed
    2006-10-16 CaS StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code