如何在运行时在NSButton上独立缩放轴

| 在Interface Builder中,您可以选择缩放按钮图像的方式,为“缩放”下拉菜单选择独立于轴,按比例向下等。如何在运行时访问或更改NSButton的此属性?     
已邀请:
您应该可以使用按钮的单元格进行设置:
NSButton *someButton;

NSButtonCell *someButtonCell = [someButton cell];
[someButtonCell setImageScaling:NSImageScaleAxesIndependently];
有关图像缩放选项的列表,请参见此处。     

要回复问题请先登录注册