On 12 Aug 2012, at 19:53, Seth Willits wrote: > > 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.
Have you considered handing off this portion of your code as part of an XPC process? It could then quit and relaunch without your app needing to be. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com