mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-05 22:37:45 +01:00
Update function name to match other like named functions
This commit is contained in:
parent
a0636b8f47
commit
1e1208f54d
@ -366,7 +366,7 @@ class AppCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
|
||||
return nil
|
||||
}
|
||||
|
||||
func indexPath(for object: AnyObject) -> IndexPath? {
|
||||
func indexPathFor(_ object: AnyObject) -> IndexPath? {
|
||||
guard let node = treeController.rootNode.descendantNodeRepresentingObject(object) else {
|
||||
return nil
|
||||
}
|
||||
@ -1199,19 +1199,19 @@ private extension AppCoordinator {
|
||||
}
|
||||
|
||||
func handleSelectToday() {
|
||||
if let indexPath = indexPath(for: SmartFeedsController.shared.todayFeed) {
|
||||
if let indexPath = indexPathFor(SmartFeedsController.shared.todayFeed) {
|
||||
selectFeed(indexPath)
|
||||
}
|
||||
}
|
||||
|
||||
func handleSelectAllUnread() {
|
||||
if let indexPath = indexPath(for: SmartFeedsController.shared.unreadFeed) {
|
||||
if let indexPath = indexPathFor(SmartFeedsController.shared.unreadFeed) {
|
||||
selectFeed(indexPath)
|
||||
}
|
||||
}
|
||||
|
||||
func handleSelectStarred() {
|
||||
if let indexPath = indexPath(for: SmartFeedsController.shared.starredFeed) {
|
||||
if let indexPath = indexPathFor(SmartFeedsController.shared.starredFeed) {
|
||||
selectFeed(indexPath)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user