PubSub, enclosures and "Couldn't find PSFeed of PSEntry"
PubSub, enclosures and "Couldn't find PSFeed of PSEntry"
- Subject: PubSub, enclosures and "Couldn't find PSFeed of PSEntry"
- From: Martin <email@hidden>
- Date: Wed, 6 Feb 2008 19:09:20 +0100
Hi,
My Cocoa app subscribes to several RSS feeds using the PubSub
framework. I'd like to handle the downloading of enclosures. To do so,
I observe the PSEnclosureDownloadStateDidChangeNotification:
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(downloadStateDidChanged:)
name:PSEnclosureDownloadStateDidChangeNotification object:nil];
The downloadStateDidChanged will be called for any enclosure of any
entry of any feed that my application is subscribed to. So in the
implementation of downloadStateDidChanged, I'd like to know which
entry of which feed I'm dealing with. So I do something like this :
- (void)downloadStateDidChanged:(NSNotification *)notification {
PSEnclosure *enclosure = [notification object];
PSEntry *entry = enclosure.entry;
NSLog(@"%@", entry);
}
But I'm having the following error message :
[WARNING] Couldn't find PSFeed of PSEntry['My Entry Title' 1]
(FeedCore=PubSub::FeedCore[Feeds #1] 0x177950, PSClient=(null))
Am I doing something wrong?
Thanks,
-Martin.
_______________________________________________
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