Re: PubSub Framework Alternative
Re: PubSub Framework Alternative
- Subject: Re: PubSub Framework Alternative
- From: Seth Willits <email@hidden>
- Date: Sun, 12 Aug 2012 11:53:08 -0700
On Aug 12, 2012, at 11:29 AM, Jens Alfke wrote:
>> I reported these assertions years ago but did get no response.
>
> Disclaimer: I wrote about ⅔ of the PubSub framework.
> After I left Apple at the end of 2007 I don't think anyone else put any work into the framework.
It really seems like this would be a nice framework for Apple to add to opensource.apple.com.
The problem I'm having right now is if I add a feed, remove that feed, then add a new feed with the same URL, grabbing the entries throws assertions. It seems it's happening because the entry instances are hanging around and they still belong to the old feed which is also hanging around, so assigning them to a new feed is causing the assertion. I don't know what's retaining it, but I'm 99% sure it's not my code as I've watched every retain/release as it happened.
I don't see any way around this*, so now I'm off to write my own PubSub "clone" while hopefully using FeedParser for the parsing so I don't need to do too much work. I'm not sure how this will turn out, but it's worth some time to investigate.
*One possibility is to never remove a feed from the PSClient until the application quits, but that could be weeks.
>> If I had to do it again I would simply use the NSXML* classes to write my own Atom/RSS parser. It should not be that hard and you can certainly do a better job as the PubSub team did.
>
> *hollow laugh*
>
> Fetching feeds is _hard_, at least if you want to fetch arbitrary feeds. RSS is a horribly vague file format, and many of the people implementing feeds on websites seem to just dump content into PHP templates instead of using any real XML API, so you run into lots and lots of problems like...
All things which do scare me, and which I really really don't want to have to deal with, which is why I used PubSub in the first place. The app UI and functionality is all in place, except PubSub is being a little punk with this assertion and I've come across at least one other before.
I find it somewhat surprising that there are dozens of Mac and iOS feed readers out there, but no major open source Cocoa alternative to PubSub.
--
Seth Willits
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden