From f48fa641399e9ef6312542cef93c5e0e4282f958 Mon Sep 17 00:00:00 2001 From: Andrew McCallum Date: Sun, 3 Mar 1996 00:35:52 +0000 Subject: [PATCH] ([NSGMutableDictionary -objectForKey:]): New method. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1036 72102866-910b-0410-8b05-ffd578937521 --- Source/NSGDictionary.m | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/NSGDictionary.m b/Source/NSGDictionary.m index 4a819ee8c..415bd5fa3 100644 --- a/Source/NSGDictionary.m +++ b/Source/NSGDictionary.m @@ -90,7 +90,6 @@ forKeys: (NSString**)keys count: (unsigned)count - (unsigned) count - - objectForKey: (NSString*)aKey - (NSEnumerator*) keyEnumerator - (NSEnumerator*) objectEnumerator */ @@ -119,6 +118,13 @@ [self putObject: anObject atKey: aKey]; } +- objectForKey: aKey +{ + /* xxx Should I change the method name in Dictionary? + I don't really want to; I think "at" is better. */ + return [self objectAtKey: aKey]; +} + - (void) removeObjectForKey:(NSString *)aKey { [self removeObjectAtKey: aKey];