2018-01-08 21:53:49 -08:00
|
|
|
//
|
|
|
|
// SendToCommand.swift
|
2018-08-28 22:18:24 -07:00
|
|
|
// NetNewsWire
|
2018-01-08 21:53:49 -08:00
|
|
|
//
|
|
|
|
// Created by Brent Simmons on 1/8/18.
|
|
|
|
// Copyright © 2018 Ranchero Software. All rights reserved.
|
|
|
|
//
|
|
|
|
|
2018-02-02 22:51:32 -08:00
|
|
|
import AppKit
|
2018-01-08 21:53:49 -08:00
|
|
|
|
2018-01-09 22:04:45 -08:00
|
|
|
// Unlike UndoableCommand commands, you instantiate one of each of these and reuse them.
|
|
|
|
|
2018-01-08 21:53:49 -08:00
|
|
|
protocol SendToCommand {
|
|
|
|
|
2018-01-11 22:18:46 -08:00
|
|
|
var title: String { get }
|
|
|
|
var image: NSImage? { get }
|
|
|
|
|
2018-01-09 22:04:45 -08:00
|
|
|
func canSendObject(_ object: Any?, selectedText: String?) -> Bool
|
|
|
|
func sendObject(_ object: Any?, selectedText: String?)
|
2018-01-08 21:53:49 -08:00
|
|
|
}
|
|
|
|
|