Comments (5)
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.
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.
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.
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.
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)
- trouble using AQXMLParser HOT 1
- AQGzipInputStream pauses unexpectedly while parsing XML HOT 4
- kSecAttrAccount not used in -[AQKeychainItem copyQueryDictionary:] ?
- Fix key length function has a bug HOT 1
- AQXMLParser random crashes when parsing some xml documents HOT 2
- downloaderCompletedTask: never called if completed successfully (includes simple fix)
- AES encrypt options HOT 2
- Unchecked Error Condition - security issue
- Problem parsing XML with encoding "US-ASCII" in AQXMLparser HOT 1
- StreamingXMLParser: Getting Byte Position on End of Document?
- Handling of input stream error HOT 2
- AQXMLParser/NSXMLParser delegate call behavior discrepancy
- Untitled
- Warnings when using LLVM compiler HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aqtoolkit.