• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: PubSub Framework Alternative
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PubSub Framework Alternative


  • Subject: Re: PubSub Framework Alternative
  • From: Mike Abdullah <email@hidden>
  • Date: Mon, 20 Aug 2012 10:19:53 +0100

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 (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


  • Follow-Ups:
    • Re: PubSub Framework Alternative
      • From: Seth Willits <email@hidden>
References: 
 >PubSub Framework Alternative (From: Seth Willits <email@hidden>)
 >Re: PubSub Framework Alternative (From: Christian Kienle <email@hidden>)
 >Re: PubSub Framework Alternative (From: Jens Alfke <email@hidden>)
 >Re: PubSub Framework Alternative (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: fragile ABI and PPC64
  • Next by Date: Re: Pass data through view
  • Previous by thread: Re: PubSub Framework Alternative
  • Next by thread: Re: PubSub Framework Alternative
  • Index(es):
    • Date
    • Thread