Limit number of article items. Issue #2

This commit is contained in:
relikd
2019-03-06 03:34:56 +01:00
parent 1071c55eef
commit fc640250d8
5 changed files with 18 additions and 3 deletions

View File

@@ -32,4 +32,5 @@
+ (NSUInteger)openFewLinksLimit; // Change with: 'defaults write de.relikd.baRSS openFewLinksLimit -int 10'
+ (NSUInteger)shortArticleNamesLimit; // Change with: 'defaults write de.relikd.baRSS shortArticleNamesLimit -int 50'
+ (NSUInteger)articlesInMenuLimit; // Change with: 'defaults write de.relikd.baRSS articlesInMenuLimit -int 40'
@end

View File

@@ -67,14 +67,19 @@
#pragma mark - Hidden Plist Properties -
/// @return The limit on how many links should be opened at the same time, if user holds the option key.
/// @return The limit on how many links should be opened at the same time, if user holds the option key. Default: @c 10
+ (NSUInteger)openFewLinksLimit {
return (NSUInteger)[self defaultInt:10 forKey:@"openFewLinksLimit"];
}
/// @return The limit on when to truncate article titles (Short names setting must be active).
/// @return The limit on when to truncate article titles (Short names setting must be active). Default: @c 60
+ (NSUInteger)shortArticleNamesLimit {
return (NSUInteger)[self defaultInt:60 forKey:@"shortArticleNamesLimit"];
}
/// @return The maximum number of articles displayed per feed. Default: @c 0 (no limitation)
+ (NSUInteger)articlesInMenuLimit {
return (NSUInteger)[self defaultInt:0 forKey:@"articlesInMenuLimit"];
}
@end