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 中显示图像,但看起来很模糊。
在另一个窗口中,我使用 NSButton 显示它,然后就可以了,
我试图缩放图像以适应 NSTableView,但它仍然模糊,有人知道为什么吗?
[编辑] 我找到了解决方法:给 NSImageCell 添加边框,默认边框是无。我不知道为什么。
我最近也遇到了这个问题,刚刚发现如何解决它。在 IB 的 NSTableViewColumn 上,我使用绑定将图像连接到单元格。在绑定检查器中,我选择了“启用条件集”。关闭它为我解决了这个问题。
这个图片:
变成了这样的形象:
好多了,而且看起来没有褪色。
图像似乎处于“禁用”状态。
你是如何创建这个 NSImageCells 表列的?您可能在某处(列或其数据单元格)未选中“启用”。这应该启用但不可编辑(除非您想要可编辑性)。