mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-29 04:08:54 +03:00
Register shareItemView nib in shareTableView
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
8add57a048
commit
331a76195b
1 changed files with 3 additions and 0 deletions
|
@ -12,8 +12,11 @@ import OSLog
|
||||||
|
|
||||||
class ShareTableViewDataSource: NSObject, NSTableViewDataSource, NSTableViewDelegate {
|
class ShareTableViewDataSource: NSObject, NSTableViewDataSource, NSTableViewDelegate {
|
||||||
private let shareItemViewIdentifier = NSUserInterfaceItemIdentifier("ShareTableItemView")
|
private let shareItemViewIdentifier = NSUserInterfaceItemIdentifier("ShareTableItemView")
|
||||||
|
private let shareItemViewNib = NSNib(nibNamed: "ShareTableItemView", bundle: nil)
|
||||||
|
|
||||||
var sharesTableView: NSTableView? {
|
var sharesTableView: NSTableView? {
|
||||||
didSet {
|
didSet {
|
||||||
|
sharesTableView?.register(shareItemViewNib, forIdentifier: shareItemViewIdentifier)
|
||||||
sharesTableView?.dataSource = self
|
sharesTableView?.dataSource = self
|
||||||
sharesTableView?.reloadData()
|
sharesTableView?.reloadData()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue