Error Building Project With NSXMLParserDelegate.

Posted by fuzzygoat on Stack Overflow See other posts from Stack Overflow or by fuzzygoat
Published on 2010-03-23T21:21:37Z Indexed on 2010/03/23 21:23 UTC
Read the original article Hit count: 1165

Filed under:
|
|

TurbineXMLParser.h

#import <Foundation/Foundation.h>

@interface TurbineXMLParser : NSObject <NSXMLParserDelegate> {
...

TurbineXMLParser.m

#import "TurbineXMLParser.h"

I have just added a new class to my current project that I previously tested in a single file. When I try and build the project I get the error: error: cannot find protocol declaration for 'NSXMLParserDelegate'

I did a bit of searching and tried adding the following ...

TurbineXMLParser.h

#import <Foundation/Foundation.h>

@protocol NSXMLParserDelegate;

@interface TurbineXMLParser : NSObject <NSXMLParserDelegate> {
...

but still get the warning: warning: no definition of protocol 'NSXMLParserDelegate' is found

any help would be much appreciated

gary

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about cocoa-touch