How would I be able to mask an nsimageview in objective c? For example, having an nsimageview with rounded corners.
Share
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.
You don’t. If you want to draw an image in a way that NSImageView doesn’t support, you’ll need to make your own view to draw it.
The only other way would be to mask the image itself before passing it off to the image view.