Bound by error


Hi all.

Having trouble tracking down this error:

2010-07-13 12:18:08.366 Departments[453:a0f] [<DepartmentViewController 0x10013d220> valueForUndefinedKey:]: this class is not key value coding-compliant for the key employees.

I think it’s in IB or the MyDocument.xcdatamodel but I checked and re-checked the bindings and relationships but can’t find anything…

Any Ideas???

Do I have to Re-Create the Employee and Department Classes???



For those who have the same problem.

What I did was …

  1. Delete the Array Controllers from the Nib (Xib)
  2. Re-created them and re-bound them as per the book.

Now everything works.

One Question tho. is:

Why did Aaron replace:


and then Delete that:

+ (NSSet *)keyPathsForValuesAffectingFullName { return [NSSet setWithObjects:@"firstName",@"lastName",nil]; }

Actually I have no idea what ‘that’ does if some one could explain it would be appreciated…