Friday, November 6, 2009

Don't forget to synthesize!

I decided to reduce the problem I was having by removing extraneous files from the project. In the process, I moved certain properties from one file to another.

All was well, and I solved that initial problem.

However, I started adding back in some additional code, and got this error when trying to assign a UIImageView pointer to a property:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[MainViewController setVideoSlot1:]: unrecognized selector sent to instance 0x3d23150'


As it turns out, I forgot to (re)synthesize those properties that I had earlier moved from one file to another. The odd thing is, Xcode didn't bother to give me the normal warnings for properties that haven't been also synthesized. There maybe an additional condition that has to be fulfilled before you will see that warning. Keep an eye out.

No comments: