mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Fix NSDictionary and NSMutableDictionary implementation.
NSCharacterSet searches in appropriate places for resources. NSBundle no longer supports GNUSTEP_LIBRARY_PATH variable. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2519 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
04e12e7ff5
commit
a02a4e9e88
19 changed files with 383 additions and 152 deletions
|
@ -28,6 +28,9 @@
|
|||
#include <Foundation/NSUtilities.h>
|
||||
#include <Foundation/NSString.h>
|
||||
|
||||
@class NSDictionaryNonCore;
|
||||
@class NSMutableDictionaryNonCore;
|
||||
|
||||
@interface NSGDictionaryKeyEnumerator : NSEnumerator
|
||||
{
|
||||
NSDictionary *dictionary;
|
||||
|
@ -81,7 +84,10 @@
|
|||
+ (void) initialize
|
||||
{
|
||||
if (self == [NSGDictionary class])
|
||||
behavior_class_add_class (self, [Dictionary class]);
|
||||
{
|
||||
behavior_class_add_class (self, [NSDictionaryNonCore class]);
|
||||
behavior_class_add_class (self, [Dictionary class]);
|
||||
}
|
||||
}
|
||||
|
||||
- objectForKey: aKey
|
||||
|
@ -108,9 +114,14 @@
|
|||
+ (void) initialize
|
||||
{
|
||||
if (self == [NSGMutableDictionary class])
|
||||
behavior_class_add_class (self, [NSGDictionary class]);
|
||||
{
|
||||
behavior_class_add_class (self, [NSMutableDictionaryNonCore class]);
|
||||
behavior_class_add_class (self, [NSGDictionary class]);
|
||||
behavior_class_add_class (self, [Dictionary class]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* This is the designated initializer */
|
||||
/* Comes from Dictionary.m
|
||||
- initWithCapacity: (unsigned)numItems
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue