ftp.nice.ch/pub/next/science/mathematics/MathArray.0.40.s.tar.gz#/MathArray-0.40/NSObjectExtra.m

This is NSObjectExtra.m in view mode; [Download] [Up]

/*
    NSObject(MAImplementation) - extra NSObject methods
    
    Copyright (C) 1995, Adam Fedor
    
*/

#ifdef NEXT_FOUNDATION
#import <foundation/NSString.h>
#import <foundation/NSException.h>
#else
#import <Foundation/NSString.h>
#import <Foundation/NSException.h>
#endif
#import "MathArray/NSObjectExtra.h"

#ifdef GNU_FOUNDATION
#define sel_getName	sel_get_name
#endif

/* This is a dummy function so that we can force the methods in this
   file to be loaded by non-NeXT linkers. */
const char *
MathArrayNSObjectExtra()
{
    return "MathArrayNSObjectExtra";
}


@implementation NSObject(MAImplementation)

/* Construction notice */
+ (void)maNotImplemented:(SEL)aSelector
{
    NSString *not;
    
    not = [NSString stringWithFormat:@"\n  %s does not implement %s yet.\n",
        	[[[self class] description] cString], sel_getName(_cmd)];
		
    NSAssert(0, not);  
}

- (void)maNotImplemented:(SEL)aSelector
{
    NSString *not;
    
    not = [NSString stringWithFormat:@"\n  %s does not implement %s yet.\n",
        	[[[self class] description] cString], sel_getName(_cmd)];
		
    NSAssert(0, not);  
}

- (void)maSubclassResponsibility:(SEL)aSelector
{
    NSAssert1(0, @"Invalid method call. %s is a subclass responsibility",
    	sel_getName(aSelector));  
}

@end

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.