* Source/NSObjCRuntime.m (GSInstanceVariableInfo): fixes.

* Source/NSObject.m ([NSObject -handleQueryWithUnboundKey:]): raise an
exception.
([NSObject -handleTakeValue:forUnboundKey:]): changed exception.
([NSObject -unableToSetNilForKey:]): likewise.
([NSObject -storedValueForKey:]),
([NSObject -valueForKey:]): check for null selector before calling
respondsToSelector:
([NSObject -takeStoredValue:forKey:]),
([NSObject -takeValue:forKey:]): likewise. Call GSSetValue with correct
values.
(GSSetValue): fixed ivar implementation.
(GSGetValue): likewise.
([NSObject -methodSignatureForSelector:]): FreeBSD fix.
* Source/NSEnumerator.m|.h ([NSEnumerator -allObjects]): implemented.
* Source/Unicode.m (GetDefEncoding): do not emit the warning for
NSISOLatin1StringEncoding.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@8467 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mirko 2001-01-03 11:22:59 +00:00
parent ad197739c4
commit 978d1a617b
6 changed files with 130 additions and 58 deletions

View file

@ -24,9 +24,23 @@
#include <config.h>
#include <base/preface.h>
#include <Foundation/NSUtilities.h>
#include <Foundation/NSArray.h>
@implementation NSEnumerator
- (NSArray *)allObjects
{
NSMutableArray *array;
id obj;
array = [NSMutableArray arrayWithCapacity:10];
while((obj = [self nextObject]))
[array addObject:obj];
return array;
}
- (id) nextObject
{
[self subclassResponsibility:_cmd];