Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSButton + & - Button

Tags:

cocoa

nsbutton

In my application, i need to add + & - 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

like image 820
Amitg2k12 Avatar asked Jul 18 '11 08:07

Amitg2k12


1 Answers

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];
like image 89
Rob Keniger Avatar answered Oct 27 '22 08:10

Rob Keniger