Re: Enums with WOXMLDecoder
We binned woxmlcoder some time ago in favour of simplexml http://simple.sourceforge.net/ It is miles more capable than woxmlcoder, might be worth a try. Simon On Thursday, April 21, 2011, Pascal Robert wrote: > Anyone had any luck with using WOXMLDecoder with enums? I can get them to > encode properly, but I can't decode them since it's looking for a public > constructor, and enums can't have public constructors. > > Any tricks beside trying to override WOXMLDecoder.decodeObjectForKey() to > call another method instead of a constructor, or to stop using enums for > cases where I want to use WOXMLCoder/Decoder? > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/simon%40potwells.co.uk > > This email sent to si...@potwells.co.uk > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Enums with WOXMLDecoder
Le 2011-04-21 à 13:59, Pascal Robert a écrit : > Anyone had any luck with using WOXMLDecoder with enums? I can get them to > encode properly, but I can't decode them since it's looking for a public > constructor, and enums can't have public constructors. > > Any tricks beside trying to override WOXMLDecoder.decodeObjectForKey() to > call another method instead of a constructor, or to stop using enums for > cases where I want to use WOXMLCoder/Decoder? Not easy to subclass WOXMLDecoder... ERRest might be a better solution, and I can encode/decode in other formats than XML. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Enums with WOXMLDecoder
Anyone had any luck with using WOXMLDecoder with enums? I can get them to encode properly, but I can't decode them since it's looking for a public constructor, and enums can't have public constructors. Any tricks beside trying to override WOXMLDecoder.decodeObjectForKey() to call another method instead of a constructor, or to stop using enums for cases where I want to use WOXMLCoder/Decoder? ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com