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.
我想制作开/关渐变NSButton,但使用蓝色突出显示,如NSTabView选择按钮。 是否有可能使这种简单的方法? 或者我应该手动绘制这个? 如果我应该手动绘制这个,最好的方法是什么?(CIFilter或只是NSGradient)
NSButton
NSTabView
CIFilter
NSGradient
谢谢。
要在 IB(Interface Builder)中做到这一点,您只需使用弹出菜单将按钮的键设置为“返回”(或在键等效字段中输入 \R)。
您必须自己使用 NSButtonCell 的自定义子类来实现。