Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这些控件(左侧)是如何制作/设计的,这些只是带有文本的表格视图排列在顶部和底部还是一些模仿文本框的标签?
这可以通过基于视图的 NSTableView相对容易地完成。从屏幕截图中无法看出相关应用程序是如何实际实现的,但如果我从头开始,那将是我的方法。
要添加到 Andrew Madsen 的答案,单击一行时显示的灰色背景可能是在 的子类中绘制的NSTableRowView,使用- (void)drawSelectionInRect:(NSRect)dirtyRect.
NSTableRowView
- (void)drawSelectionInRect:(NSRect)dirtyRect