Add additional needed KVO accessors.

This commit is contained in:
Brent Simmons committed 2025-10-05 11:29:37 -07:00
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? {