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