Giter VIP home page Giter VIP logo

Comments (5)

GerTeunis avatar GerTeunis commented on June 30, 2024

I've added the latest version from git now.

Fix 1: add to AQXMLParser
@interface AQXMLParser : NSObject

Still warnings about the NSXMLParser AQXMLParser mismatch
/Users/gerteunis/Documents/NZBVortex/Classes/XML/AQXMLParser.m:965:0 /Users/gerteunis/Documents/NZBVortex/Classes/XML/AQXMLParser.m:965: warning: incompatible Objective-C types 'struct AQXMLParser *', expected 'struct NSXMLParser *' when passing argument 1 of 'parser:parseErrorOccurred:' from distinct Objective-C type

/Users/gerteunis/Documents/NZBVortex/Classes/XML/AQXMLParser.m:1072:0 /Users/gerteunis/Documents/NZBVortex/Classes/XML/AQXMLParser.m:1072: warning: incompatible Objective-C types 'struct AQXMLParser *', expected 'struct NSXMLParser *' when passing argument 1 of 'parser:didStartMappingPrefix:toURI:' from distinct Objective-C type

/Users/gerteunis/Documents/NZBVortex/Classes/XML/AQXMLParser.m:1094:0 /Users/gerteunis/Documents/NZBVortex/Classes/XML/AQXMLParser.m:1094: warning: incompatible Objective-C types 'struct AQXMLParser *', expected 'struct NSXMLParser *' when passing argument 1 of 'parser:didEndMappingPrefix:' from distinct Objective-C type

I use AQXMLParserDelegate in my setDelegate method

from aqtoolkit.

AlanQuatermain avatar AlanQuatermain commented on June 30, 2024

It sounds like you're declaring your delegate class to implement the NSXMLParserDelegate protocol rather than the AQXMLParserDelegate protocol, would that be correct? I haven't seen these warnings in a long time now, not since copying the NS version to my own header file and changing all the NS* classes to AQ*.

from aqtoolkit.

GerTeunis avatar GerTeunis commented on June 30, 2024

Thank you for your reply.

I use on class which uses the AQXMLParserDelegate: copy paste:
@interface NZB : NSObject <NSCoding, AQXMLParserDelegate> {
NSString *uiTitle;
NSString *nzbFileName;
[...]

And get warning:
/Users/gerteunis/Documents/NZBVortex/Classes/XML/AQXMLParser.m:965:0 /Users/gerteunis/Documents/NZBVortex/Classes/XML/AQXMLParser.m:965: warning: incompatible Objective-C types 'struct AQXMLParser *', expected 'struct NSXMLParser *' when passing argument 1 of 'parser:parseErrorOccurred:' from distinct Objective-C type

Funny isn't it? Have absolutely no clue what I did wrong here.

from aqtoolkit.

AlanQuatermain avatar AlanQuatermain commented on June 30, 2024

I'm scratching my head on this one too. Maybe #import the AQXMLParser header before Foundation.h? For whatever reason, the compiler is seeing the NSXMLParser version first, and so is comparing against that.

Overall I'm not inclined to worry about itβ€” the same thing happens when calling -isEqual: and other methods implemented with different parameter types on different classes; the compiler can 'choose' to type against the one taking an NSDate, when really you're looking for the NSString version.

from aqtoolkit.

GerTeunis avatar GerTeunis commented on June 30, 2024

Whatever I do I do not seem to get them 'fixed'
No problem though; I am just ignoring them.

Thanks alan!

from aqtoolkit.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.