Re: Object-C question #1
Re: Object-C question #1
- Subject: Re: Object-C question #1
- From: Malte <email@hidden>
- Date: Wed, 8 Dec 2004 04:33:03 +0100
Hey Mark!
I'm really quite the newbie myself so maybe what i say is complete nonsense but this is what i'm seeing in your code:
//YOU ARE DECLARING parseString TO BE AN INSTANCE METHOD
- (int)parseString:(NSString *)aString;
//your method 'initWithString'
- (id)initWithString:(NSString *)aString
{
//here you're sending 'parseString' a message (aString)
//as if 'parseString' was an object?
//it's not...it's a method as declared above
//your compiler is trying to find the object 'parseString' and fails to do so
//given you the error: "parseString undeclared"
[parseString aString];
return self;
}
maybe this is it?
-malteAttachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
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