[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Keyed archiving and class clusters
From: |
Richard Frith-Macdonald |
Subject: |
Re: Keyed archiving and class clusters |
Date: |
Mon, 28 Jun 2010 15:37:43 +0100 |
On 28 Jun 2010, at 15:15, Thomas Davie wrote:
> Hi all,
>
> From what I understand, GNUstep's keyed archive format is meant to be
> compatible with Apple's. However, I'm hitting an issue and I'm not certain
> if it's the fault of the archiver, or class clusters.
>
> Basically, when an NSMutableSet gets encoded, what really gets encoded is
> it's concrete subclass, GSMutableSet... When I try to decode this in some
> code using apple's implementation, it chokes, not having a GSMutableSet class
> to attempt to init.
>
> Is there any sane way round this, or should I get on with writing my own
> serialisation methods if I want to send objects back and forth between
> apple/GNUstep implementations?
It's a bug ... I fixed it in svn trunk.
If you don't want to use trunk, I expect as a workaround you could add a
category to NSMutableSet to override -classForCoder to return [NSMutableSet
class]