1

I've created a category to add methods to NSManagedObjectModel. Everything works fine except Xcode keeps throwing warnings about NSManagedObjectModel not implementing the methods. How can I force it to recognise the method?

John Rudy
  • 37,282
  • 14
  • 64
  • 100
ruipacheco
  • 15,025
  • 19
  • 82
  • 138

1 Answers1

9

Did you #import the .h of the category?

gcamp
  • 14,622
  • 4
  • 54
  • 85
  • I don't know about the original poster, but I did and it made no difference. At what point does it need to be imported? – Ash Oct 04 '10 at 09:53
  • At the begging of every .m file where you're using the function. – gcamp Oct 04 '10 at 20:15
  • This solution worked for me. I added it to my PCH to save some time, put it in the #ifdef __OBJC__ section. – jsapara Sep 07 '11 at 17:17
  • Agree with jsapara, note that you might need to restart project to make it take effect. – Philip007 Mar 23 '13 at 21:03