I have created a class derived from NSImageView. However, the classes’s constructor (init) is not being called, therefore I’m guessing init is not the correct initializer for NSImageView.
What is the correct initializer for NSImageView? I checked out the manuals but they don’t seem to mention the correct init function. A google search doesn’t seem to provide any concrete results either.
I have found a possible constructor:
-(id) initWithFrame:(NSRect)frameRect
but I’m not sure if this would be the correct one to call. I’m not too sure what a frameRect is.
What would be the default initializer/constructor for NSImageView? Note I am developing a desktop app not an iOS app if that makes a difference.The NSImageView subclass object has been placed in the window through Interface Builder, not programmatically.
If it’s from a nib/xib, initWithCoder: