mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
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:
parent
c6392f1e63
commit
8dde889542
1 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue