2024-02-21 12:21:50 +03:00
|
|
|
//
|
|
|
|
// ShareViewController.swift
|
|
|
|
// FileProviderUIExt
|
|
|
|
//
|
|
|
|
// Created by Claudio Cambra on 21/2/24.
|
|
|
|
//
|
|
|
|
|
|
|
|
import AppKit
|
2024-02-21 12:58:39 +03:00
|
|
|
import FileProvider
|
2024-02-21 12:21:50 +03:00
|
|
|
|
|
|
|
class ShareViewController: NSViewController {
|
2024-02-21 12:58:39 +03:00
|
|
|
let itemIdentifiers: [NSFileProviderItemIdentifier]
|
|
|
|
|
2024-02-21 12:56:57 +03:00
|
|
|
@IBOutlet weak var fileNameIcon: NSImageView!
|
|
|
|
@IBOutlet weak var fileNameLabel: NSTextField!
|
|
|
|
@IBOutlet weak var descriptionLabel: NSTextField!
|
|
|
|
@IBOutlet weak var closeButton: NSButton!
|
2024-02-21 12:21:50 +03:00
|
|
|
|
|
|
|
public override var nibName: NSNib.Name? {
|
|
|
|
return NSNib.Name(self.className)
|
|
|
|
}
|
|
|
|
|
|
|
|
var actionViewController: DocumentActionViewController! {
|
|
|
|
return parent as? DocumentActionViewController
|
|
|
|
}
|
2024-02-21 12:58:39 +03:00
|
|
|
|
|
|
|
init(_ itemIdentifiers: [NSFileProviderItemIdentifier]) {
|
|
|
|
self.itemIdentifiers = itemIdentifiers
|
|
|
|
super.init(nibName: nil, bundle: nil)
|
|
|
|
}
|
|
|
|
|
|
|
|
required init?(coder: NSCoder) {
|
|
|
|
fatalError("init(coder:) has not been implemented")
|
|
|
|
}
|
2024-02-21 12:21:50 +03:00
|
|
|
}
|