how to code NSButton to look just like image
问题 Using code (not the Interface builder) I need to create an NSButton that looks like an image. Specifically I want to use NSImageNameStopProgressFreestandingTemplate and I need it not to look like button but to look like the image. This means: 1. No 'button down' look 2. No border, no any visibility of the button Thanks. 回答1: I know this response is a bit late, but you could try this, given thisButton : [thisButton setImage:[NSImage imageNamed:NSImageNameStopProgressFreestandingTemplate]];