Ok, I subclassedd NSImageView but how do i override the perform click method?Hey, I am curious as to how this will be done as well. I will need images and textfields to be clickable. If the only way to do this is with an NSButton, than how would I make the button part invisible so all I can see is the text (I need text with a transparent background). As well of course for the image.
Just looking at the documentation. A NSTextField and NSImageView inherits from NSControl which has the methodThis sounds like exactly what I want.Code:
So... I could be completely wrong but I think you'll have to subclass, in your case an NSImageView and override the performClick method. In there you do whatever you gotta do.
Did you read the above? You don't want to override performClick: you want to override mouseDown: or maybe mouseUp: or perhaps both.Ok, I subclassedd NSImageView but how do i override the perform click method?
Yeah i'm pretty sure that is what he means.Not sure what you mean? Do you mean how do you set the image the view is displaying?