Skip to content

Fixing problems with Protocol *

Nat! edited this page Feb 25, 2017 · 2 revisions

If you are messaging a Protocol you are out of luck.

Otherwise rewrite

+ (BOOL) conformsToProtocol:(Protocol *) protocol

as

+ (BOOL) conformsToProtocol:(PROTOCOL) protocol
``

If you need to stay backwards compatible, consider

#ifndef MULLE_OBJC_ typedef Protocol *PROTOCOL #endif


or

#ifndef MULLE_OBJC_ #define PROTOCOL (Protocol *) #endif

Clone this wiki locally