mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
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:
parent
8965a9b208
commit
b5e2260020
1 changed files with 14 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue