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.
在我的应用程序中,我需要添加 + & - 按钮来添加和删除表格中的行,我试图找出任何默认图像/按钮但没有得到,+ & - 按钮的正确图像,我需要由我自己或在 Cocoa 框架中提供这些按钮图像。再次感谢您查看问题,可能是愚蠢的问题,不是吗
为此有系统提供的图像,命名为NSAddTemplate和NSRemoveTemplate。您可以将这些名称输入到 Interface Builder 中按钮的图像字段中,或者使用这些常量以编程方式访问图像:
NSAddTemplate
NSRemoveTemplate
[NSImage imageNamed:NSImageNameAddTemplate]; [NSImage imageNamed:NSImageNameRemoveTemplate];