1995-04-03 22:59:20 +00:00
|
|
|
/* NSDictionary - Dictionary object to store key/value pairs
|
|
|
|
Copyright (C) 1993,1994 Free Software Foundation, Inc.
|
1995-04-04 16:15:31 +00:00
|
|
|
|
1995-04-03 22:59:20 +00:00
|
|
|
Written by: Adam Fedor <fedor@boulder.colorado.edu>
|
|
|
|
Date: Mar 1995
|
1995-04-04 16:15:31 +00:00
|
|
|
|
1995-04-03 22:59:20 +00:00
|
|
|
This file is part of the GNU Objective C Class Library.
|
1995-04-04 16:15:31 +00:00
|
|
|
|
1995-04-03 22:59:20 +00:00
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Library General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Library General Public License for more details.
|
1995-04-04 16:15:31 +00:00
|
|
|
|
1995-04-03 22:59:20 +00:00
|
|
|
You should have received a copy of the GNU Library General Public
|
|
|
|
License along with this library; if not, write to the Free
|
|
|
|
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
1995-04-04 16:15:31 +00:00
|
|
|
*/
|
1995-04-03 22:59:20 +00:00
|
|
|
|
|
|
|
#include <foundation/NSDictionary.h>
|
|
|
|
|
|
|
|
@implementation NSDictionary
|
|
|
|
|
|
|
|
- copyWithZone:(NSZone *)zone
|
|
|
|
{
|
1995-04-04 16:15:31 +00:00
|
|
|
return [super copyWithZone:zone];
|
1995-04-03 22:59:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
+ allocWithZone:(NSZone *)zone
|
|
|
|
{
|
1995-04-04 16:15:31 +00:00
|
|
|
return [super allocWithZone:zone];
|
1995-04-03 22:59:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
+ dictionary
|
|
|
|
{
|
1995-04-04 16:15:31 +00:00
|
|
|
return [[[NSDictionary alloc] init] autorelease];
|
1995-04-03 22:59:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
+ dictionaryWithObjects:(id *)objects forKeys:(NSString **)keys count:(unsigned)count
|
|
|
|
{
|
1995-04-04 16:15:31 +00:00
|
|
|
[self notImplemented:_cmd];
|
|
|
|
return 0;
|
1995-04-03 22:59:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
+ dictionaryWithObjects:(NSArray *)objects forKeys:(NSArray *)keys
|
|
|
|
{
|
1995-04-04 16:15:31 +00:00
|
|
|
[self notImplemented:_cmd];
|
|
|
|
return 0;
|
1995-04-03 22:59:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- initWithObjects:(id *)objects forKeys:(NSString **)keys count:(unsigned)count
|
|
|
|
{
|
1995-04-04 16:15:31 +00:00
|
|
|
[self notImplemented:_cmd];
|
|
|
|
return 0;
|
1995-04-03 22:59:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- initWithDictionary:(NSDictionary *)otherDictionary
|
|
|
|
{
|
1995-04-04 16:15:31 +00:00
|
|
|
[self notImplemented:_cmd];
|
|
|
|
return 0;
|
1995-04-03 22:59:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- initWithContentsOfFile:(NSString *)path
|
|
|
|
{
|
1995-04-04 16:15:31 +00:00
|
|
|
[self notImplemented:_cmd];
|
|
|
|
return 0;
|
1995-04-03 22:59:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (unsigned)count
|
|
|
|
{
|
1995-04-04 16:15:31 +00:00
|
|
|
[self notImplemented:_cmd];
|
|
|
|
return 0;
|
1995-04-03 22:59:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- objectForKey:(NSString *)aKey
|
|
|
|
{
|
1995-04-04 16:15:31 +00:00
|
|
|
[self notImplemented:_cmd];
|
|
|
|
return 0;
|
1995-04-03 22:59:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//- (NSEnumerator *)keyEnumerator
|
|
|
|
//{
|
1995-04-04 16:15:31 +00:00
|
|
|
// [self notImplemented:_cmd];
|
|
|
|
//}
|
1995-04-03 22:59:20 +00:00
|
|
|
|
|
|
|
- (BOOL)isEqualToDictionary:(NSDictionary *)other
|
|
|
|
{
|
1995-04-04 16:15:31 +00:00
|
|
|
[self notImplemented:_cmd];
|
|
|
|
return 0;
|
1995-04-03 22:59:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (NSString *)description
|
|
|
|
{
|
1995-04-04 16:15:31 +00:00
|
|
|
[self notImplemented:_cmd];
|
|
|
|
return 0;
|
1995-04-03 22:59:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (NSString *)descriptionWithIndent:(unsigned)level
|
|
|
|
{
|
1995-04-04 16:15:31 +00:00
|
|
|
[self notImplemented:_cmd];
|
|
|
|
return 0;
|
1995-04-03 22:59:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (NSArray *)allKeys
|
|
|
|
{
|
1995-04-04 16:15:31 +00:00
|
|
|
[self notImplemented:_cmd];
|
|
|
|
return 0;
|
1995-04-03 22:59:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (NSArray *)allValues
|
|
|
|
{
|
1995-04-04 16:15:31 +00:00
|
|
|
[self notImplemented:_cmd];
|
|
|
|
return 0;
|
1995-04-03 22:59:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (NSArray *)allKeysForObject:anObject
|
|
|
|
{
|
1995-04-04 16:15:31 +00:00
|
|
|
[self notImplemented:_cmd];
|
|
|
|
return 0;
|
1995-04-03 22:59:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL)writeToFile:(NSString *)path atomically:(BOOL)useAuxiliaryFile
|
|
|
|
{
|
1995-04-04 16:15:31 +00:00
|
|
|
[self notImplemented:_cmd];
|
|
|
|
return 0;
|
1995-04-03 22:59:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//- (NSEnumerator *)objectEnumerator
|
|
|
|
//{
|
1995-04-04 16:15:31 +00:00
|
|
|
// [self notImplemented:_cmd];
|
|
|
|
//}
|
1995-04-03 22:59:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation NSMutableDictionary
|
|
|
|
|
|
|
|
+ allocWithZone:(NSZone *)zone
|
|
|
|
{
|
1995-04-04 16:15:31 +00:00
|
|
|
[self notImplemented:_cmd];
|
|
|
|
return 0;
|
1995-04-03 22:59:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
+ dictionaryWithCapacity:(unsigned)numItems
|
|
|
|
{
|
1995-04-04 16:15:31 +00:00
|
|
|
[self notImplemented:_cmd];
|
|
|
|
return 0;
|
1995-04-03 22:59:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- initWithCapacity:(unsigned)numItems
|
|
|
|
{
|
1995-04-04 16:15:31 +00:00
|
|
|
[self notImplemented:_cmd];
|
|
|
|
return 0;
|
1995-04-03 22:59:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
- (void)setObject:anObject forKey:(NSString *)aKey
|
|
|
|
{
|
1995-04-04 16:15:31 +00:00
|
|
|
[self notImplemented:_cmd];
|
1995-04-03 22:59:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (void)removeObjectForKey:(NSString *)aKey
|
|
|
|
{
|
1995-04-04 16:15:31 +00:00
|
|
|
[self notImplemented:_cmd];
|
1995-04-03 22:59:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (void)removeAllObjects
|
|
|
|
{
|
1995-04-04 16:15:31 +00:00
|
|
|
[self notImplemented:_cmd];
|
1995-04-03 22:59:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (void)removeObjectsForKeys:(NSArray *)keyArray
|
|
|
|
{
|
1995-04-04 16:15:31 +00:00
|
|
|
[self notImplemented:_cmd];
|
1995-04-03 22:59:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (void)addEntriesFromDictionary:(NSDictionary *)otherDictionary
|
|
|
|
{
|
1995-04-04 16:15:31 +00:00
|
|
|
[self notImplemented:_cmd];
|
1995-04-03 22:59:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@end
|