File:  [NeXTSTEP 3.3 examples] / Examples / EnterpriseObjects / RadioMatrixAssociation / NSObject-IBFixes.m
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:48:43 2018 UTC (8 years, 1 month ago) by root
Branches: NeXT, MAIN
CVS tags: NeXTSTEP33, HEAD
Sample Programs from NeXSTEP 3.3

// This file contains some methods on NSObject to make it work in the hybrid
// world of Object/NSObject. These methods are needed by the current AppKit
// to load nib files.
// Note that they will become obsolete when we move to NS 4.0.
// The following three methods are not needed if you use EOF 1.1:
//	- (BOOL)isKindOf:aClass
//	- (BOOL)respondsTo:(SEL)aSelector
//	- perform:(SEL)aSelector with:anObject
//

#import <foundation/NSObject.h>

#define	EOF1_0	NO

@implementation NSObject(IBFixes)

+ allocFromZone:(NXZone *)zone;
{
    return [self allocWithZone: (NSZone *)zone];
}

+ (BOOL)_canAlloc
{
  return YES;
}


- perform:(SEL)aSelector with:object1 with:object2
{
  return [self perform:aSelector withObject:object1 withObject:object2];
}


#ifdef EOF1_0
- (BOOL)isKindOf:aClass
{
  return [self isKindOfClass:aClass];
}


- (BOOL)respondsTo:(SEL)aSelector
{
  return [self respondsToSelector:aSelector];
}


- perform:(SEL)aSelector with:anObject
{
  return [self perform:aSelector withObject:anObject];
}
#endif

@end 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.