mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-17 03:46:25 +01:00
38 lines
1005 B
Swift
38 lines
1005 B
Swift
//
|
|
// ExtensionPointDetailViewController.swift
|
|
// NetNewsWire
|
|
//
|
|
// Created by Maurice Parker on 4/8/20.
|
|
// Copyright © 2020 Ranchero Software. All rights reserved.
|
|
//
|
|
|
|
import Cocoa
|
|
|
|
class ExtensionPointDetailViewController: NSViewController {
|
|
|
|
@IBOutlet weak var imageView: NSImageView!
|
|
@IBOutlet weak var titleLabel: NSTextField!
|
|
@IBOutlet weak var descriptionLabel: NSTextField!
|
|
|
|
private var extensionPointWindowController: NSWindowController?
|
|
private var extensionPoint: ExtensionPoint?
|
|
|
|
init(extensionPoint: ExtensionPoint) {
|
|
super.init(nibName: "ExtensionPointDetail", bundle: nil)
|
|
self.extensionPoint = extensionPoint
|
|
}
|
|
|
|
public required init?(coder: NSCoder) {
|
|
super.init(coder: coder)
|
|
}
|
|
|
|
override func viewDidLoad() {
|
|
super.viewDidLoad()
|
|
guard let extensionPoint = extensionPoint else { return }
|
|
imageView.image = extensionPoint.templateImage
|
|
titleLabel.stringValue = extensionPoint.title
|
|
descriptionLabel.attributedStringValue = extensionPoint.description
|
|
}
|
|
|
|
}
|