• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Object-C question #1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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?

-malte

Attachment: 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

References: 
 >Object-C question #1 (From: Mark Dawson <email@hidden>)

  • Prev by Date: Re: delay function
  • Next by Date: Re: Object-C question #1
  • Previous by thread: Object-C question #1
  • Next by thread: Re: Object-C question #1
  • Index(es):
    • Date
    • Thread