ArticleListView handleFolderRefresh: igoring refresh on RSS

An RSS/Atom newsreader with features comparable to commercial newsreaders.

ArticleListView handleFolderRefresh: igoring refresh on RSS

Postby rklems » Sun Jun 11, 2006 11:25 pm

So I'm wondering if the fact that if you are in an RSS folder and its refreshed and now contains new articles, the folder isn't refreshed is intentional or just an oversight? The handleFolderUpdate: method only refreshes the folder if its a smart folder, or a trash folder. So if I'm sitting in a folder, and a refresh occurs and new articles now exist in the database, and the unread count has changed, I don't get to actually see the articles until I select a different folder, and then reselect the old folder. The change is very simple, but the fact that its explicitly only refreshing the folder if its a trash folder or a smart folder seems curious.
rklems
Harmless
 
Posts: 1
Joined: Sun Jun 11, 2006 11:18 pm
Location: Cupertino

Postby jeff_johnson_dev » Mon Jun 12, 2006 8:17 am

The way I have things set up now, handleFolderUpdate: doesn't deal with new articles at all. The article list is only interested in the observed notification when events occur such as a purge of articles from the trash or a change in search criteria in a smart folder.

The reloading of a folder for new articles is handled by -[AppController handleRefreshStatusChange:], which only reloads the current folder if your preference is not set to mark articles read automatically.

The inspiration for this change was complaints from people who have their preference set to mark articles read automatically, as well as people who use the new unified view. Suppose that you're reading articles in the Unread Articles smart folder, or you have the folder filter set to Unread Articles. You're in the middle of reading an article, a refresh happens to occur, and the article you're reading just disappears.

If your preference is set to mark articles read after "Next Unread", then the current folder will reload after a refresh.
jeff_johnson_dev
Cocoaforge Admin
 
Posts: 1371
Joined: Wed Mar 01, 2006 4:12 pm


Return to Vienna

Who is online

Users browsing this forum: No registered users