Strange xcode / interface builder bug

I got the following interesting bug:

2010-08-20 22:49:11.206 FrittRegnskap[27650:207] Unknown class MembershipViewUIController in Interface Builder file.
2010-08-20 22:49:11.210 FrittRegnskap[27650:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key appDelegate.'

It turns out that what caused this was the interface builder was no longer connecting to my xcode class file. To make it go away I renamed the class in interface builder, regenerated it and moved the code from my old class to the new class, recompiled and everything is back to normal again,

Got to love these wonderful tools with soft links between code and UI.


|