From 0a2df82052e796f1512823634257028d1f2ef188 Mon Sep 17 00:00:00 2001 From: mccallum Date: Fri, 3 Nov 1995 22:18:47 +0000 Subject: [PATCH] ([NSDictionary +dictionary]): Use +alloc, not _concreteClass. This makes [NSMutableDictionary +dictionary] and friends do the right thing. ([NSDictionary +dictionaryWithObjects:forKeys:count:]): Likewise. ([NSMutableDictionary +dictionaryWithCapacity:]): Likewise. (Problem reported by Kim Shrier .) git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@658 72102866-910b-0410-8b05-ffd578937521 --- Source/NSDictionary.m | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/NSDictionary.m b/Source/NSDictionary.m index b26e86b53..1cddf737b 100644 --- a/Source/NSDictionary.m +++ b/Source/NSDictionary.m @@ -67,7 +67,7 @@ static Class NSMutableDictionary_concrete_class; + dictionary { - return [[[[self _concreteClass] alloc] init] + return [[[self alloc] init] autorelease]; } @@ -75,9 +75,9 @@ static Class NSMutableDictionary_concrete_class; forKeys: (NSString**)keys count: (unsigned)count { - return [[[[self _concreteClass] alloc] initWithObjects:objects - forKeys:keys - count:count] + return [[[self alloc] initWithObjects:objects + forKeys:keys + count:count] autorelease]; } @@ -98,7 +98,7 @@ static Class NSMutableDictionary_concrete_class; + dictionaryWithObjects: (NSArray*)objects forKeys: (NSArray*)keys { - return [[[[self _concreteClass] alloc] initWithObjects:objects forKeys:keys] + return [[[self alloc] initWithObjects:objects forKeys:keys] autorelease]; } @@ -286,7 +286,7 @@ static Class NSMutableDictionary_concrete_class; + dictionaryWithCapacity: (unsigned)numItems { - return [[[[self _mutableConcreteClass] alloc] initWithCapacity:numItems] + return [[[self alloc] initWithCapacity:numItems] autorelease]; }