RETableView
Winamp-styled tableview for macos (without Winamp controls), using in reAMP playlist
Install / Use
/learn @alexfreud/RETableViewREADME
RETableView
macOS 10.13+ ONLY!
Winamp-styled table (without Winamp controls), using in reAMP playlist.
Install
Swift package only, add this repo URL to your project, setup delegate and enjoy!
import RETableView
...
// Init RETableView
let tableView = RETableView(frame: frame)
tableView.delegate = self
addSubview(tableView)
// Use you own NSSlider
tableView.slider = slider
// Enable drag&drop support
tableView.registerForDraggedTypes([.fileURL])
// Load data to table
tableView.reloadData()
// Use you own color theme
let newTheme = RETableViewTheme(font: NSFont.boldSystemFont(ofSize: 12),
backgroundColor: .black,
textColor: .white,
textActiveColor: .green,
selectionColor: .blue)
tableView.theme = newTheme
Delegate methods
/// Return the number of rows in a table view.
var numberOfRows: Int { get }
/// Item to insert in a particular location of the table view.
/// - Parameter index: An index locating a row in tableView.
func getItem(at index: Int) -> RETableViewItem
/// Add dragged URLs at index position
/// - Parameters:
/// - urls: Array of dragged URLs
/// - index: Index, where URLs must be inserted
func add(_ urls: [URL], at index: Int)
/// Doubleclicked or enter-pressed item index
/// - Parameter index: Item index
func itemDidPressed(at index: Int)
/// Selected items in table
/// - Parameter indexSet: Set of selected items indexes
func didSelect(rows indexSet: Set<Int>)
/// Items to be removed from table
/// - Parameter indexSet: Indexes of removable items
func didRemove(indexSet: Set<Int>)
/// Begin items moving in table
func didBeginMovingItems()
/// End items moving in table
func didEndMovingItems()
/// Moving items in table
/// - Parameters:
/// - difference: Step by which the elements in the table have shifted
/// - movingIndexes: Moving items indexes
func didMoveItems(difference: Int, movingIndexes: Set<Int>)
About Me
- Twitter: @alexfreud
- reAMP music player with Winamp skins support: reAMP
- PayPal: Buy me a cup of coffee if you find it's useful for you
License
MIT
Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。

