mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
* 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:
parent
ad197739c4
commit
978d1a617b
6 changed files with 130 additions and 58 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue