Re: [Hessianobjc-user] mapping BigDecimal to NSDecimalNumber
Status: Alpha
Brought to you by:
cocoa_dood
|
From: Byron W. <by...@bl...> - 2006-10-12 03:26:56
|
Hi Tore,
let me see your initWithCoder method and class interface. My
BBSHessianMapDecoder class only implements the keyed archive methods.
decodeValueOfObjCType:at: isn't a keyed archiver method of NSCoder.
This is how I might implement my custom BigDecimalNumber custom class
initWithCoder method:
@interface MyBigDecimalNumber: NSDecimalNumber <NSCoding> { }
...
...
...
- (id) initWithCoder : (NSCoder *) decoder {
self = [[NSDecimalNumber alloc] initWithString:[decoder
objectForKey:"value"]];
return self;
}
... similar thing for encoding
MyBigDecli
On Oct 11, 2006, at 5:29 PM, Tore Halset wrote:
> Hello.
>
> Do you know how to map a java.math.BigDecimal to NSDecimalNumber?
> BigDecimal has a single key named "value" with the String version of
> the value. I tried to create a subclass of NSDecimalNumber with
> custom initWithCoder:, but I then got famous "*** -
> decodeValueOfObjCType:at: only defined for abstract class. Define -
> [BBSHessianMapDecoder decodeValueOfObjCType:at:]!"
>
> - Tore.
>
> ----------------------------------------------------------------------
> ---
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?
> cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Hessianobjc-user mailing list
> Hes...@li...
> https://lists.sourceforge.net/lists/listinfo/hessianobjc-user
|