diff --git a/Source/MutableString.m b/Source/MutableString.m index 1fb7448d5..23b47acd3 100644 --- a/Source/MutableString.m +++ b/Source/MutableString.m @@ -1,5 +1,5 @@ /* Implementation for GNU Objective-C MutableString object - Copyright (C) 1993,1994 Free Software Foundation, Inc. + Copyright (C) 1993,1994, 1996 Free Software Foundation, Inc. Written by: R. Andrew McCallum Date: July 1994 @@ -32,7 +32,7 @@ /* This is the designated initializer */ - initWithCapacity: (unsigned)capacity { - return [self notImplemented:_cmd]; + return [self subclassResponsibility:_cmd]; } + (MutableString*) stringWithCapacity: (unsigned)capacity @@ -41,17 +41,17 @@ return [n autorelease]; } -/* Subclasses need to implemented the next to methods */ +/* Subclasses need to implemented the next two methods */ - removeRange: (IndexRange)range { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; return self; } - (void) insertString: (String*)string atIndex: (unsigned)index { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; } - (void) setString: (String*)string diff --git a/Source/NSArray.m b/Source/NSArray.m index 28903dc7d..67d7e066d 100644 --- a/Source/NSArray.m +++ b/Source/NSArray.m @@ -1,5 +1,5 @@ /* NSArray - Array object to hold other objects. - Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 1995, 1996 Free Software Foundation, Inc. Written by: R. Andrew McCallum From skeleton by: Adam Fedor @@ -138,7 +138,7 @@ static Class NSMutableArray_concrete_class; /* This is the designated initializer for NSArray. */ - initWithObjects: (id*)objects count: (unsigned)count { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; return nil; } @@ -202,13 +202,13 @@ static Class NSMutableArray_concrete_class; - (unsigned) count { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; return 0; } - objectAtIndex: (unsigned)index { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; return nil; } @@ -388,7 +388,7 @@ static Class NSMutableArray_concrete_class; /* This is the desgnated initializer for NSMutableArray */ - initWithCapacity: (unsigned)numItems { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; return nil; } diff --git a/Source/NSData.m b/Source/NSData.m index 47059cff8..b10064f86 100644 --- a/Source/NSData.m +++ b/Source/NSData.m @@ -1,5 +1,5 @@ /* Stream of bytes class for serialization and persistance in GNUStep - Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 1995, 1996 Free Software Foundation, Inc. Written by: R. Andrew McCallum Date: March 1995 @@ -236,7 +236,7 @@ static Class NSMutableData_concrete_class; - (const void*) bytes { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; return NULL; } @@ -319,7 +319,7 @@ static Class NSMutableData_concrete_class; - (unsigned int)length; { /* This is left to concrete subclasses to implement. */ - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; return 0; } @@ -429,7 +429,7 @@ static Class NSMutableData_concrete_class; atCursor: (unsigned int*)cursor context: (id )callback { - return; + [self notImplemented:_cmd]; } @@ -459,13 +459,13 @@ static Class NSMutableData_concrete_class; - (id) copyWithZone: (NSZone*)zone { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; return nil; } - (id) mutableCopyWithZone: (NSZone*)zone { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; return nil; } @@ -518,7 +518,7 @@ static Class NSMutableData_concrete_class; /* This method not in OpenStep */ - (unsigned) capacity { - [self notImplemented:_cmd]; + [self subclassResponsiblity:_cmd]; return 0; } @@ -531,12 +531,12 @@ static Class NSMutableData_concrete_class; - (void) setLength: (unsigned int)length { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; } - (void*) mutableBytes { - [self notImplemented:_cmd]; + [self subclassResponsibilty:_cmd]; return NULL; } @@ -545,7 +545,7 @@ static Class NSMutableData_concrete_class; - (void) appendBytes: (const void*)bytes length: (unsigned int)length { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; } - (void) appendData: (NSData*)other diff --git a/Source/NSDictionary.m b/Source/NSDictionary.m index 1cddf737b..65b6c4422 100644 --- a/Source/NSDictionary.m +++ b/Source/NSDictionary.m @@ -1,5 +1,5 @@ /* NSDictionary - Dictionary object to store key/value pairs - Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 1995, 1996 Free Software Foundation, Inc. Written by: R. Andrew McCallum From skeleton by: Adam Fedor @@ -107,7 +107,7 @@ static Class NSMutableDictionary_concrete_class; forKeys: (NSString**)keys count: (unsigned)count { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; return 0; } @@ -140,19 +140,19 @@ static Class NSMutableDictionary_concrete_class; - (unsigned) count { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; return 0; } - objectForKey: (NSString*)aKey { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; return 0; } - (NSEnumerator*) keyEnumerator { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; return nil; } @@ -243,7 +243,7 @@ static Class NSMutableDictionary_concrete_class; - (NSEnumerator*) objectEnumerator { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; return nil; } @@ -293,7 +293,7 @@ static Class NSMutableDictionary_concrete_class; /* This is the designated initializer */ - initWithCapacity: (unsigned)numItems { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; return 0; } @@ -310,12 +310,12 @@ static Class NSMutableDictionary_concrete_class; - (void) setObject:anObject forKey:(NSString *)aKey { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; } - (void) removeObjectForKey:(NSString *)aKey { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; } - (void) removeAllObjects diff --git a/Source/NSEnumerator.m b/Source/NSEnumerator.m index 9de2bfb16..d9581f00b 100644 --- a/Source/NSEnumerator.m +++ b/Source/NSEnumerator.m @@ -1,5 +1,5 @@ /* NSEnumerator abstrace class for GNUStep - Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 1995, 1996 Free Software Foundation, Inc. Written by: R. Andrew McCallum Date: March 1995 @@ -28,7 +28,7 @@ - (id) nextObject { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; return nil; } diff --git a/Source/NSMutableData.m b/Source/NSMutableData.m index f420c71f0..176137ca6 100644 --- a/Source/NSMutableData.m +++ b/Source/NSMutableData.m @@ -1,5 +1,5 @@ /* Implementation of NSMutableData for GNUStep - Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 1995, 1996 Free Software Foundation, Inc. Written by: R. Andrew McCallum Date: April 1995 @@ -51,7 +51,7 @@ { /* xxx Eventually we'll have to be aware of malloc'ed memory vs vm_allocate'd memory, etc. */ - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; return nil; } @@ -65,7 +65,7 @@ /* This method not in OpenStep */ - (unsigned) capacity { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; return 0; } @@ -78,12 +78,12 @@ - (void) setLength: (unsigned int)length { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; } - (void*) mutableBytes { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; return NULL; } @@ -92,7 +92,7 @@ - (void) appendBytes: (const void*)bytes length: (unsigned int)length { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; } - (void) appendData: (NSData*)other diff --git a/Source/Port.m b/Source/Port.m index c4de4d15b..d6a11e400 100644 --- a/Source/Port.m +++ b/Source/Port.m @@ -1,5 +1,5 @@ /* Implementation of abstract superclass port for use with Connection - Copyright (C) 1994, 1995 Free Software Foundation, Inc. + Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc. Written by: R. Andrew McCallum Date: July 1994 @@ -28,19 +28,19 @@ + newRegisteredPortWithName: (id )n { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; return nil; } + newPortFromRegisterWithName: (id )n onHost: (id )host { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; return nil; } + newPort { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; return nil; } @@ -50,7 +50,7 @@ toPort: (Port*) remote timeout: (int) milliseconds { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; return 0; } @@ -64,7 +64,7 @@ fromPort: (Port**) remote timeout: (int) milliseconds { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; return 0; } @@ -76,19 +76,19 @@ - (BOOL) isSoft { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; return YES; } - (BOOL) isEqual: anotherPort { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; return NO; } - (unsigned) hash { - [self notImplemented:_cmd]; + [self subclassResponsibility:_cmd]; return 0; }