Regan
Regan

Reputation: 1497

How can I make an NSImage into a button

Is it possible to make it so that the user can click on an NSImage and trigger an action? How can I do this, through Interface Builder or programmatically?

Upvotes: 1

Views: 845

Answers (1)

thyrgle
thyrgle

Reputation:

Yeah:

[myButton setImage:[NSImage imageNamed:@"mypng.png"]];

Upvotes: 3

Related Questions