Closed andrewconlan closed 7 years ago
The Parser
class might seem redundant, but the reason behind it's existence is to prevent the leaking of an NSObject inheritance to the publicly exposed FeedParser
. NSObject exposes 50 or so methods and properties with, as of yet, no usefulness to the user using FeedKit.
Also, considering Apple won't resolve #4 any time soon, and the documentation suggests that the rules of Object Oriented Programming don't fit well with XMLParser, removing inheritance of an XMLParser in the Parser class would indeed fix issue #4.
Hmmm I see, I hadn't though about the NSObject issue, makes sense. Who knows, beta 1 next week might have it fixed :P
Some info from the developer forum
This pull request removes the XMLParser subclass and that seems to fix #4 the offline/incorrect URL crash, will probably need a bit more work in terms of access control, not my strongest suit :)