2020-04-09 03:22:13 +02:00
|
|
|
//
|
|
|
|
// 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?
|
2020-04-15 05:33:05 +02:00
|
|
|
private var extensionPoint: ExtensionPoint?
|
2020-04-09 03:22:13 +02:00
|
|
|
|
2020-04-15 05:33:05 +02:00
|
|
|
init(extensionPoint: ExtensionPoint) {
|
2020-04-09 03:22:13 +02:00
|
|
|
super.init(nibName: "ExtensionPointDetail", bundle: nil)
|
2020-04-15 05:33:05 +02:00
|
|
|
self.extensionPoint = extensionPoint
|
2020-04-09 03:22:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public required init?(coder: NSCoder) {
|
|
|
|
super.init(coder: coder)
|
|
|
|
}
|
|
|
|
|
|
|
|
override func viewDidLoad() {
|
|
|
|
super.viewDidLoad()
|
2020-04-15 05:33:05 +02:00
|
|
|
guard let extensionPoint = extensionPoint else { return }
|
|
|
|
imageView.image = extensionPoint.templateImage
|
|
|
|
titleLabel.stringValue = extensionPoint.title
|
|
|
|
descriptionLabel.attributedStringValue = extensionPoint.description
|
2020-04-09 03:22:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|