Support archiving of mutable character sets

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2884 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1998-07-29 14:52:50 +00:00
parent c6392f1e63
commit 8dde889542

View file

@ -83,6 +83,20 @@
return self;
}
- (void) encodeWithCoder: (NSCoder*)aCoder
{
[aCoder encodeObject: [self bitmapRepresentation]];
}
- (id) initWithCoder: (NSCoder*)aCoder
{
NSMutableData *rep;
rep = [aCoder decodeObject];
self = [self initWithBitmap: rep];
return self;
}
/* Need to implement the next two methods just like NSBitmapCharSet */
- (NSData *)bitmapRepresentation
{