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?
Asked
Active
Viewed 2,375 times
1

John Rudy
- 37,282
- 14
- 64
- 100

ruipacheco
- 15,025
- 19
- 82
- 138
-
see also http://stackoverflow.com/questions/6820778/linking-objective-c-categories-in-a-static-library/7664505#7664505 – 18446744073709551615 Oct 05 '11 at 16:29
1 Answers
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
-
-
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