2017-05-27 10:43:27 -07:00
|
|
|
//
|
|
|
|
// TimelineTableRowView.swift
|
2018-08-28 22:18:24 -07:00
|
|
|
// NetNewsWire
|
2017-05-27 10:43:27 -07:00
|
|
|
//
|
|
|
|
// Created by Brent Simmons on 8/31/15.
|
|
|
|
// Copyright © 2015 Ranchero Software, LLC. All rights reserved.
|
|
|
|
//
|
|
|
|
|
2018-02-02 22:51:32 -08:00
|
|
|
import AppKit
|
2017-05-27 10:43:27 -07:00
|
|
|
|
|
|
|
class TimelineTableRowView : NSTableRowView {
|
|
|
|
|
2019-05-13 21:42:47 -07:00
|
|
|
override var isOpaque: Bool {
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
|
2019-05-21 16:08:16 -05:00
|
|
|
override var isEmphasized: Bool {
|
|
|
|
didSet {
|
|
|
|
cellView?.isEmphasized = isEmphasized
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
override var isSelected: Bool {
|
|
|
|
didSet {
|
|
|
|
cellView?.isSelected = isSelected
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-02-13 21:33:50 -08:00
|
|
|
init() {
|
|
|
|
super.init(frame: NSRect.zero)
|
|
|
|
}
|
|
|
|
|
|
|
|
required init?(coder: NSCoder) {
|
|
|
|
super.init(coder: coder)
|
|
|
|
}
|
|
|
|
|
2017-05-27 10:43:27 -07:00
|
|
|
private var cellView: TimelineTableCellView? {
|
2018-02-14 13:14:25 -08:00
|
|
|
for oneSubview in subviews {
|
|
|
|
if let foundView = oneSubview as? TimelineTableCellView {
|
|
|
|
return foundView
|
2017-05-27 10:43:27 -07:00
|
|
|
}
|
|
|
|
}
|
2018-02-14 13:14:25 -08:00
|
|
|
return nil
|
2017-05-27 10:43:27 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|