From 97f9432776f840ec61fefdee5fa825488b37e032 Mon Sep 17 00:00:00 2001 From: mccallum Date: Tue, 4 Apr 1995 16:17:51 +0000 Subject: [PATCH] Skeleton from Fedor. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@269 72102866-910b-0410-8b05-ffd578937521 --- Headers/gnustep/base/NSArray.h | 62 ---------- Headers/gnustep/base/NSCoder.h | 184 ---------------------------- Headers/gnustep/base/NSDictionary.h | 54 -------- 3 files changed, 300 deletions(-) diff --git a/Headers/gnustep/base/NSArray.h b/Headers/gnustep/base/NSArray.h index cb9dc9252..77fbee70f 100644 --- a/Headers/gnustep/base/NSArray.h +++ b/Headers/gnustep/base/NSArray.h @@ -88,65 +88,3 @@ enum {NSNotInArray = 0x7fffffff}; // to be obsoleted soon @end #endif /* __NSArray_h_OBJECTS_INCLUDE */ -/* Interface for NSArray for GNUStep - Copyright (C) 1994 NeXT Computer, Inc. - - This file is part of the GNU Objective C Class Library. - - 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. - - 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. - */ - -#ifndef __NSArray_h_OBJECTS_INCLUDE -#define __NSArray_h_OBJECTS_INCLUDE - -#include -#include -#include - -@class NSEnumerator; - -@interface NSArray : Array - -+ (id) array; -+ (id) arrayWithObject: anObject; -+ (id) arrayWithObjects: firstObject, ...; -- (id) initWithArray: (NSArray*)array; -- (id) initWithObjects: (id)firstObject, ...; -- (id) initWithObjects: (id*)objects count: (unsigned int)count; -- (BOOL) containsObject: (id)candidate; -- (unsigned) count; /* inherited */ -- (unsigned) indexOfObject: (id)anObject; /* inherited */ -- (unsigned) indexOfObjectIdenticalTo: (id)anObject; -- (id) lastObject; /* inherited */ -- (id) objectAtIndex: (unsigned)index; /* inherited */ -- (NSEnumerator*) objectEnumerator; -- (NSEnumerator*) reverseObjectEnumerator; -- (void) makeObjectsPerform: (SEL)aSelector; /* inherited */ -- (void) makeObjectsPerform: (SEL)aSelector withObject: (id)anObject; /* inh */ -- (id) firstObjectCommonWithArray: (NSArray*)otherArray; -- (BOOL) isEqualToArray: (NSArray*)otherArray; -- (NSArray*) sortedArrayUsingFunction: (int(*)(id,id,void*))comparator - context: (void*)context; -- (NSArray*) sortedArrayUsingSelector: (SEL)comparator; -- (NSArray*) subarrayWithRange: (NSRange)range; -- (NSString*) componentsJoinedByString: (NSString*)separator; -- (NSString*) description; - -@end - -@interface NSMutableArray : NSArray -@end - -#endif /* __NSArray_h_OBJECTS_INCLUDE */ diff --git a/Headers/gnustep/base/NSCoder.h b/Headers/gnustep/base/NSCoder.h index 0e7666da2..2476d6e16 100644 --- a/Headers/gnustep/base/NSCoder.h +++ b/Headers/gnustep/base/NSCoder.h @@ -78,187 +78,3 @@ @end #endif /* __NSCoder__include__ */ -/* From: - * (Preliminary Documentation) Copyright (c) 1994 by NeXT Computer, Inc. - * All Rights Reserved. - * - * NSCoder - * - */ - -#ifndef __NSCoder__include__ -#define __NSCoder__include__ - -#include -#include -#include - -@class NSMutableData, NSData, NSString; - -@interface NSCoder : NSObject -{ - NSMutableData *_data; -} - -// Encoding Data - -- (void)encodeArrayOfObjCType:(const char *)types - count:(unsigned)count - at:(const void *)array; - /* - * Serializes data of Objective C types listed in types having count - * elements residing at address array. - */ - -- (void)encodeBycopyObject:(id)anObject; - /* - * Overridden by subclasses to serialize the supplied Objective C object so - * that a copy rather than a proxy of anObject is created upon - * deserialization. NSCoder's implementation simply invokes encodeObject:. - */ - -- (void)encodeConditionalObject:(id)anObject; - /* - * Overridden by subclasses to conditionally serialize the supplied - * Objective C object. The object should be serialized only if it is an - * inherent member of the larger data structure. NSCoder's implementation - * simply invokes encodeObject:. - */ - -- (void)encodeDataObject:(NSData *)data; - /* - * Serializes the NSData object data. - */ - -- (void)encodeObject:(id)anObject; - /* - * Serializes the supplied Objective C object. - */ - -- (void)encodePropertyList:(id)plist; - /* - * Serializes the supplied property list (NSData, NSArray, NSDictionary, or - * NSString objects). - */ - -- (void)encodePoint:(NSPoint)point; - /* - * Serializes the supplied point structure. - */ - -- (void)encodeRect:(NSRect)rect; - /* - * Serializes the supplied rectangle structure. - */ - -- (void)encodeRootObject:(id)rootObject; - /* - * Overridden by subclasses to start the serialization of an interconnected - * group of Objective C objects, starting with rootObject. NSCoder's - * implementation simply invokes encodeObject:. - */ - -- (void)encodeSize:(NSSize)size; - /* - * Serializes the supplied size structure. - */ - -- (void)encodeValueOfObjCType:(const char *)type - at:(const void *)address; - /* - * Serializes data of Objective C type type residing at address address. - */ - -- (void)encodeValuesOfObjCTypes:(const char *)types,...; - /* - * Serializes values corresponding to the Objective C types listed in types - * argument list. - */ - -// Decoding Data - -- (void)decodeArrayOfObjCType:(const char *)types - count:(unsigned)count - at:(void *)address; - /* - * Deserializes data of Objective C types listed in type having count - * elements residing at address address. - */ - -- (NSData *)decodeDataObject; - /* - * Deserializes and returns an NSData object. - */ - -- (id)decodeObject; - /* - * Deserializes an Objective C object. - */ - -- (id)decodePropertyList; - /* - * Deserializes a property list (NSData, NSArray, NSDictionary, or NSString - * objects). - */ - -- (NSPoint)decodePoint; - /* - * Deserializes a point structure. - */ - -- (NSRect)decodeRect; - /* - * Deserializes a rectangle structure. - */ - -- (NSSize)decodeSize; - /* - * Deserializes a size structure. - */ - -- (void)decodeValueOfObjCType:(const char *)type - at:(void *)address; - /* - * Deserializes data of Objective C type type residing at address address. - * You are responsible for releasing the resulting objects. - */ - -- (void)decodeValuesOfObjCTypes:(const char *)types,...; - /* - * Deserializes values corresponding to the Objective C types listed in - * types argument list. You are responsible for releasing the resulting - * objects. - */ - -// Managing Zones - -- (NSZone *)objectZone; - /* - * Returns the memory zone used by deserialized objects. For instances of - * NSCoder, this is the default memory zone, the one returned by - * NSDefaultMallocZone(). - */ - -- (void)setObjectZone:(NSZone *)zone; - /* - * Sets the memory zone used by deserialized objects. Instances of NSCoder - * always use the default memory zone, the one returned by - * NSDefaultMallocZone(), and so ignore this method. - */ - -// Getting a Version - -- (unsigned int)systemVersion; - /* - * Returns the system version number as of the time the archive was created. - */ - -- (unsigned int)versionForClassName:(NSString *)className; - /* - * Returns the version number of the class className as of the time it was - * archived. - */ - -@end - -#endif /* __NSCoder__include__ */ diff --git a/Headers/gnustep/base/NSDictionary.h b/Headers/gnustep/base/NSDictionary.h index 663789a49..ce86d631a 100644 --- a/Headers/gnustep/base/NSDictionary.h +++ b/Headers/gnustep/base/NSDictionary.h @@ -65,57 +65,3 @@ @end #endif -/* NSDictionary.h - Basic dictionary container - Copyright 1993, 1994, NeXT, Inc. - NeXT, March 1993 -*/ - -#ifndef _NSDictionary_INCLUDE_ -#define _NSDictionary_INCLUDE_ - -#include -#include -#include - -@class NSArray; - -@interface NSDictionary : Dictionary - -//+ allocWithZone:(NSZone *)zone; -//+ dictionary; -//+ dictionaryWithObjects:(id *)objects forKeys:(NSString **)keys count:(unsigned)count; -//+ dictionaryWithObjects:(NSArray *)objects forKeys:(NSArray *)keys; -//- initWithObjects:(id *)objects forKeys:(NSString **)keys count:(unsigned)count; -//- initWithDictionary:(NSDictionary *)otherDictionary; -//- initWithContentsOfFile:(NSString *)path; - -//- (unsigned)count; -//- objectForKey:(NSString *)aKey; -//- (NSEnumerator *)keyEnumerator; -//- (BOOL)isEqualToDictionary:(NSDictionary *)other; -//- (NSString *)description; -//- (NSString *)descriptionWithIndent:(unsigned)level; -//- (NSArray *)allKeys; -//- (NSArray *)allValues; -//- (NSArray *)allKeysForObject:anObject; -//- (BOOL)writeToFile:(NSString *)path atomically:(BOOL)useAuxiliaryFile; -//- (NSEnumerator *)objectEnumerator; - -@end - -@interface NSMutableDictionary: NSDictionary - -//+ allocWithZone:(NSZone *)zone; -//+ dictionaryWithCapacity:(unsigned)numItems; -//- initWithCapacity:(unsigned)numItems; - -//- (void)setObject:anObject forKey:(NSString *)aKey; -//- (void)removeObjectForKey:(NSString *)aKey; -//- (void)removeAllObjects; -//- (void)removeObjectsForKeys:(NSArray *)keyArray; -//- (void)addEntriesFromDictionary:(NSDictionary *)otherDictionary; - -@end - -#endif