Sha256: a59549e45a0a1dadcb5754749575769dbf6ecc4f96aee34baac5c9e62a147fb0
Contents?: true
Size: 581 Bytes
Versions: 18
Compression:
Stored size: 581 Bytes
Contents
# @provides MotionKit::NSTableViewLayout # @requires MotionKit::NSViewLayout module MotionKit class NSTableViewLayout < NSViewLayout targets NSTableView def add_column(column_or_identifier, &block) if column_or_identifier.is_a?(NSTableColumn) column = column_or_identifier else column = NSTableColumn.alloc.initWithIdentifier(column_or_identifier) column.headerCell.stringValue = column_or_identifier end target.addTableColumn(column) context(column, &block) end alias add_table_column add_column end end
Version data entries
18 entries across 18 versions & 1 rubygems