mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-26 17:43:22 +01:00
22 lines
463 B
Swift
22 lines
463 B
Swift
//
|
|
// SendToCommand.swift
|
|
// Evergreen
|
|
//
|
|
// Created by Brent Simmons on 1/8/18.
|
|
// Copyright © 2018 Ranchero Software. All rights reserved.
|
|
//
|
|
|
|
import Cocoa
|
|
|
|
// Unlike UndoableCommand commands, you instantiate one of each of these and reuse them.
|
|
|
|
protocol SendToCommand {
|
|
|
|
var title: String { get }
|
|
var image: NSImage? { get }
|
|
|
|
func canSendObject(_ object: Any?, selectedText: String?) -> Bool
|
|
func sendObject(_ object: Any?, selectedText: String?)
|
|
}
|
|
|