discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Archive NSDecimalNumber


From: Yen-Ju Chen
Subject: Archive NSDecimalNumber
Date: Sun, 24 Feb 2002 12:15:11 -0500

  I tried to archive NSDecimalNumber and it always failed.
  I wrote a little test code:
 
 #import <Foundation/Foundation.h>

 int main(int argc, const char *argv[]) 
 {
  
    NSDecimalNumber *aNumber = [NSDecimalNumber zero];
    [NSArchiver archivedDataWithRootObject: aNumber];
  }

  And it always said: Uncaught exception NSGenericException, 
  reason: subclass NSDecimalNumber (instance) should override pointerValue.

  Did I do something wrong or is it a bug ?
  I try NSString and NSCalendarDate and they can be archived.

  Thanx

  Yen-Ju



reply via email to

[Prev in Thread] Current Thread [Next in Thread]