0

I'm getting a warning into my Objective-c project. The warning is:

Category is implementing a method which will also be implemented by its primary class.

I'm getting this warning into a class of library XMPPFramework XMPP on github

I have the next function in a XMPPMessage.h class

 - (BOOL)isGroupChatMessage;

And I'm renaming the same named function in the class XMPPMessage +XEP0045.h

How can I delete the warning? What changes will you need to make in the inheritance of the functions?

user3745888
  • 6,143
  • 15
  • 48
  • 97
  • https://stackoverflow.com/questions/9424004/suppress-warning-category-is-implementing-a-method-which-will-also-be-implement ? But I'd avoid to override it, I'd rename my own one to avoid collision. – Larme Jan 21 '19 at 08:22
  • you should either use a category and provide method names that are new and unique for the class, or subclass if you want to change the behavior of an existing method in a class. – Nirav Kotecha Jan 21 '19 at 08:58

0 Answers0