Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IKImageView Causes App to Crash

I am new to ObjC. Thanks in advance for your help and patience!

I'm trying to add an image to a window in my app (This is OSX, not iOS). I added an Image View (IKImageView) via interface builder to the window. I then added my image to the XCode Project and assigned it to the view.

When I try to compile the app it crashes with the error: "cannot decode object of class (IKImageView)".

The moment I delete the IKImageView it compiles just fine.

My initial thought was that I wasn't importing the required file, but this appears to be a subclass of NSView, so that shouldn't be the problem.

Any thoughts as to what I'm doing wrong?

like image 270
Matthew Jones Avatar asked Mar 31 '12 01:03

Matthew Jones


1 Answers

  1. Select the project on the left side of Xcode.
  2. You will see the "summary" tab on the right side. Select it.
  3. Add Quartz.framework into "Linked Frameworks and Libraries".
like image 121
f91kdash Avatar answered Nov 06 '22 23:11

f91kdash