Can I add an action to a NSImage which is drawn in a NSTextFieldCell ?
Or should I implement a NSImageView or NSButton for it ? If so, how do I add such view or button to the NSTextFieldCell ?
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Instead of using NSImage,you can use NSButton .Set its image as you are doing for NSImage.Add the selector for that button .
You can also setAlternate image option if you want chagne in image on click of that button.