Object-C question #1
Object-C question #1
- Subject: Object-C question #1
- From: Mark Dawson <email@hidden>
- Date: Tue, 7 Dec 2004 19:18:53 -0800
I have a Objective-C questions:
I have made a subclass of an NSObject and am getting a "parseString undeclared (first use in this function). If I remove the implementation of "parseString", I get the above error PLUS the error "parseString" implementation not found". What is my problem?
Thanks! Mark
@interface LengthParser : NSObject {
double mLengthValue;
int mErrorCode;
}
- (id)initWithString:(NSString *)aString;
- (int)parseString:(NSString *)aString;
@end
@implementation LengthParser
- (id)initWithString:(NSString *)aString
{
[parseString aString];
return self;
}
- (int)parseString:(NSString *)aString
{
mLengthValue = NAN;
mErrorCode = eLengthSuccess;
return mErrorCode; // never should get here?
}
@end
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden