NetNewsWire/Evergreen/AppNotifications.swift

39 lines
1.1 KiB
Swift
Raw Normal View History

2017-05-26 13:10:30 -07:00
//
// AppNotifications.swift
2017-05-26 13:22:31 -07:00
// Evergreen
2017-05-26 13:10:30 -07:00
//
// Created by Brent Simmons on 8/30/15.
// Copyright © 2015 Ranchero Software, LLC. All rights reserved.
//
2017-09-24 12:24:44 -07:00
import Cocoa
import Data
2017-05-26 13:10:30 -07:00
extension Notification.Name {
static let SidebarSelectionDidChange = Notification.Name("SidebarSelectionDidChangeNotification")
static let TimelineSelectionDidChange = Notification.Name("TimelineSelectionDidChangeNotification")
static let AppNavigationKeyPressed = Notification.Name("AppNavigationKeyPressedNotification")
2017-10-21 15:56:01 -07:00
static let UserDidAddFeed = Notification.Name("UserDidAddFeedNotification")
// Sent by DetailViewController when mouse hovers over link in web view.
static let MouseDidEnterLink = Notification.Name("MouseDidEnterLinkNotification")
static let MouseDidExitLink = Notification.Name("MouseDidExitLinkNotification")
2017-05-26 13:10:30 -07:00
}
2017-09-24 12:24:44 -07:00
typealias UserInfoDictionary = [AnyHashable: Any]
struct UserInfoKey {
2017-09-24 12:24:44 -07:00
static let view = "view"
static let article = "article"
static let articles = "articles"
static let navigationKeyPressed = "navigationKeyPressed"
static let objects = "objects"
static let feed = "feed"
static let url = "url"
2017-09-24 12:24:44 -07:00
}
2017-05-26 13:10:30 -07:00