Annotation of Examples/EnterpriseObjects/SHLExamples/EnterpriseObject/NSObject-IBFixes.m, revision 1.1.1.1

1.1       root        1: // This file contains some methods on NSObject to make it work in the hybrid
                      2: // world of Object/NSObject. These methods are needed by the current AppKit
                      3: // to load nib files.
                      4: // Note that they will become obsolete when we move to NS 4.0.
                      5: // The following three methods are not needed if you use EOF 1.1:
                      6: //     - (BOOL)isKindOf:aClass
                      7: //     - (BOOL)respondsTo:(SEL)aSelector
                      8: //     - perform:(SEL)aSelector with:anObject
                      9: //
                     10: 
                     11: #import <foundation/NSObject.h>
                     12: 
                     13: #define        EOF1_0  NO
                     14: 
                     15: @implementation NSObject(IBFixes)
                     16: 
                     17: + allocFromZone:(NXZone *)zone;
                     18: {
                     19:     return [self allocWithZone: (NSZone *)zone];
                     20: }
                     21: 
                     22: + (BOOL)_canAlloc
                     23: {
                     24:   return YES;
                     25: }
                     26: 
                     27: 
                     28: - perform:(SEL)aSelector with:object1 with:object2
                     29: {
                     30:   return [self perform:aSelector withObject:object1 withObject:object2];
                     31: }
                     32: 
                     33: 
                     34: #ifdef EOF1_0
                     35: - (BOOL)isKindOf:aClass
                     36: {
                     37:   return [self isKindOfClass:aClass];
                     38: }
                     39: 
                     40: 
                     41: - (BOOL)respondsTo:(SEL)aSelector
                     42: {
                     43:   return [self respondsToSelector:aSelector];
                     44: }
                     45: 
                     46: 
                     47: - perform:(SEL)aSelector with:anObject
                     48: {
                     49:   return [self perform:aSelector withObject:anObject];
                     50: }
                     51: #endif
                     52: 
                     53: @end 

unix.superglobalmegacorp.com

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