From 2cff25e7641792d40d229bb4d5c754609440db98 Mon Sep 17 00:00:00 2001 From: mccallum Date: Mon, 8 Apr 1996 17:19:16 +0000 Subject: [PATCH] ([NSDictionary -allKeysForObject:]): Ask SELF for objectForKey:, not K. (Reported by Robert Quillen ). git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1335 72102866-910b-0410-8b05-ffd578937521 --- Source/NSDictionary.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/NSDictionary.m b/Source/NSDictionary.m index 65b6c4422..8b07548e7 100644 --- a/Source/NSDictionary.m +++ b/Source/NSDictionary.m @@ -229,9 +229,9 @@ static Class NSMutableDictionary_concrete_class; int c = 0; while ((k = [e nextObject])) - if ([anObject isEqual:[k objectForKey:k]]) + if ([anObject isEqual: [self objectForKey: k]]) a[c++] = k; - return [[[NSArray alloc] initWithObjects:a count:c] + return [[[NSArray alloc] initWithObjects: a count: c] autorelease]; }