selector not recognized problem (newbie question)
selector not recognized problem (newbie question)
- Subject: selector not recognized problem (newbie question)
- From: Jérôme Paschoud <email@hidden>
- Date: Sat, 29 Mar 2003 19:34:10 +0100
Hi everyone,
I'm having a problem with a very simple soft, i get no errors on compilation
but when I execute the "essai" method I get a
"-[NSCFString essai]: selector not recognized"
This would means that the object I try to pass that method don't know how to
handle it, but I hardly can't find where my mistake is.
Thanks to all for the help
Here are my two classes.
//========= main classe header=======
#import <Cocoa/Cocoa.h>
#import "convert.h"
@interface myCalc : NSObject
{
IBOutlet NSTextField *first;
IBOutlet NSTextField *input;
}
- (IBAction)compute:(id)sender;
@end
//========= main classe implementation=======
#import "myCalc.h"
@implementation myCalc
- (IBAction)compute:(id)sender
{
convert *inputString = nil;
inputString = [[NSString alloc] initWithString:[input stringValue]];
[inputString essai];
[first setStringValue: inputString];
}
@end
//========= converter classe header=======
#import <Cocoa/Cocoa.h>
@interface convert : NSString {
}
- (NSString *)essai;
@end
//========= converter classe implementation======
#import "convert.h"
@implementation convert
- (NSString *)essai
{
return @"hello";
}
@end
_____________________________________________________________________
Envie de discuter en "live" avec vos amis ? Tilicharger MSN Messenger
http://www.ifrance.com/_reloc/m la 1hre messagerie instantanie de France
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.