开发者

NSButton + & - Button

开发者 https://www.devze.com 2023-03-21 13:21 出处:网络
In my application, i need to a开发者_Python百科dd + & - button to add and delete the row from a table,

In my application, i need to a开发者_Python百科dd + & - button to add and delete the row from a table, I tried to find out any default image/ button but didn't get , Proper images for + & - button, Do i need to arrange these buttons image by my own or its available in the Cocoa framework. Thanks again for looking at question, probably silly question doesn't it


There are system-provided images for this, named NSAddTemplate and NSRemoveTemplate. You can enter those names into the image field for your buttons in Interface Builder, or alternatively use these constants to access the images programmatically:

[NSImage imageNamed:NSImageNameAddTemplate];
[NSImage imageNamed:NSImageNameRemoveTemplate];
0

精彩评论

暂无评论...
验证码 换一张
取 消