I'v made a subclass of NSImageView
because I want to customize some mouseClick events. But, I haven't even started and something went wrong. I'v made NSImageView
subclass:
(File/New/File... / Cocoa(Objective-C Class) / Class = NSImageViewME
, Subclass of NSImageView
).
Just that. I've imported NSImageViewME.h
and in code where I'm creating Images and adding them to my NSView
:
NSImageView *imageView = [[NSImageView alloc] initWithFrame:frame];
[imageView setImage:image];
[self addSubview:imageView];
I'v just replaced NSImageView
with NSImageViewME
and image is not being displayed. So, very clear, when I use NSImageView
, everything works fine but when I use NSImageViewME
(untouched subclass) image is not being displayed... I've checked, initWithFrame
is being called, setImage
is being called but image is not showing... What can be the problem? Cheers.
Comment this out: