NSTableView
public extension NSTableView
-
Returns a view of class
class
fortableColumn
andowner
.Declaration
Swift
func makeViewClass<T>(_ class: T.Type, forTableColumn tableColumn: NSTableColumn?, owner: Any? = nil) -> T where T : NSView
Parameters
class
The view class to make
tableColumn
The related table column
owner
The owner object
Return Value
The view instance
-
Returns a view of class
class
withidentifier
andowner
.Declaration
Swift
func makeViewClass<T>(_ class: T.Type, withIdentifier identifier: NSUserInterfaceItemIdentifier = .init(T.defaultReuseIdentifier), owner: Any? = nil) -> T where T : NSView
Parameters
class
The view class to make
identifier
The view identifier
owner
The owner object
Return Value
The view instance