mutableCopy method

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6727 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2000-06-19 15:21:02 +00:00
parent 8965a9b208
commit b5e2260020

View file

@ -196,6 +196,20 @@ static GSFontEnumerator *sharedEnumerator = nil;
return copy;
}
/* We really want a mutable class for this, but this is quick and easy since
it's not really a public class anyway */
- mutableCopyWithZone: (NSZone *)zone
{
GSFontInfo *copy;
copy = (GSFontInfo*) NSCopyObject (self, 0, zone);
copy->fontDictionary = [fontDictionary copyWithZone: zone];
copy->fontName = [fontName copyWithZone: zone];
copy->familyName = [familyName copyWithZone: zone];
copy->weight = [weight copyWithZone: zone];
copy->encodingScheme = [encodingScheme copyWithZone: zone];
return copy;
}
- (void) set
{
[self subclassResponsibility: _cmd];