mirror of
https://github.com/lil-org/wallet.git
synced 2025-01-07 13:46:25 +03:00
Add NSTableView extension
This commit is contained in:
parent
85a50316e7
commit
279e487805
11
Tokenary macOS/Extensions/NSTableView.swift
Normal file
11
Tokenary macOS/Extensions/NSTableView.swift
Normal file
@ -0,0 +1,11 @@
|
||||
// Copyright © 2022 Tokenary. All rights reserved.
|
||||
|
||||
import Cocoa
|
||||
|
||||
extension NSTableView {
|
||||
|
||||
func makeViewOfType<RowView: NSTableRowView>(_ type: RowView.Type, owner: Any?) -> RowView {
|
||||
return makeView(withIdentifier: NSUserInterfaceItemIdentifier(String(describing: type)), owner: self) as! RowView
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user