git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4592 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-07-14 20:16:49 +00:00
parent ae3eeab2f6
commit f110df87ff

View file

@ -67,6 +67,7 @@
static Class NSAttributedString_abstract_class;
static Class NSAttributedString_concrete_class;
static Class NSMutableAttributedString_abstract_class;
static Class NSMutableAttributedString_concrete_class;
//Internal methods
@ -96,6 +97,8 @@ static Class NSMutableAttributedString_concrete_class;
{
NSAttributedString_abstract_class = self;
NSAttributedString_concrete_class = [NSGAttributedString class];
NSMutableAttributedString_abstract_class
= [NSMutableAttributedString class];
NSMutableAttributedString_concrete_class
= [NSGMutableAttributedString class];
}
@ -408,7 +411,10 @@ static Class NSMutableAttributedString_concrete_class;
+ allocWithZone: (NSZone*)z
{
return NSAllocateObject([self _mutableConcreteClass], 0, z);
if (self == NSMutableAttributedString_abstract_class)
return NSAllocateObject([self _mutableConcreteClass], 0, z);
else
return NSAllocateObject(self, 0, z);
}
//Retrieving character information