Talk:Delegates
Appearance
Objective-C code
The Objective-C code gets no compiled. First, imports lacking. I added:
#import <Foundation/Foundation.h>
I am using GNUstep and gcc 4.2.2. The raised errors are:
delegator.m:25: error: cannot find interface declaration for ‘NXConstantString’
referring to the @"default implementation" part, and
delegator.m:55: error: ‘isEqualToString’ undeclared (first use in this function)
referring to assert([isEqualToString:@"delegate implementation"]);. What is lacking in order to be able to compile this code?! --ShinTakezou 14:59, 8 December 2008 (UTC)