mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 00:04:25 +00:00
Add additional needed KVO accessors.
This commit is contained in:
1 parent
2d8b47075a
commit
0d460d3545
2 files changed
+37
No files matched your search
@@ -118,6 +118,18 @@ extension NSApplication : ScriptingObjectContainer {
|
||||
let webFeeds = self.allWebFeeds()
|
||||
return webFeeds.map { ScriptableWebFeed($0, container:self) } as NSArray
|
||||
}
|
||||
|
||||
@objc(countOfWebFeeds)
|
||||
func countOfWebFeeds() -> Int {
|
||||
return self.allWebFeeds().count
|
||||
}
|
||||
|
||||
@objc(objectInWebFeedsAtIndex:)
|
||||
func objectInWebFeedsAtIndex(_ index: Int) -> ScriptableWebFeed? {
|
||||
let webFeeds = self.allWebFeeds()
|
||||
guard index >= 0 && index < webFeeds.count else { return nil }
|
||||
return ScriptableWebFeed(webFeeds[index], container: self)
|
||||
}
|
||||
|
||||
@objc(valueInWebFeedsWithUniqueID:)
|
||||
func valueInWebFeeds(withUniqueID id:String) -> ScriptableWebFeed? {
|
||||
|
||||
Reference in new issue
Block a user