• 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
Object-C question #1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Object-C question #1
      • From: King Chung Huang <email@hidden>
    • Re: Object-C question #1
      • From: Malte <email@hidden>
  • Prev by Date: Re: delay function
  • Next by Date: Re: delay function
  • Previous by thread: Re: Responder Chain and NSDocumentController
  • Next by thread: Re: Object-C question #1
  • Index(es):
    • Date
    • Thread