objc

Object+Protocol.h
Go to the documentation of this file.
1 
4 #pragma once
5 
7 // PROTOCOL DEFINITIONS
8 
17 @protocol ObjectProtocol
18 @required
23 + (const char *)name;
24 
33 - (BOOL)isEqual:(id)anObject;
34 
42 - (BOOL)isKindOfClass:(Class)cls;
43 
50 - (BOOL)conformsTo:(Protocol *)aProtocolObject;
51 
57 - (BOOL)respondsToSelector:(SEL)aSelector;
58 
59 @end
Protocol for objects.
bool BOOL
A Boolean value.
Definition: runtime.h:60
struct objc_class * Class
A pointer to a class definition.
Definition: runtime.h:28
const char * name()
Returns the name of the class.
Protocol class definition.
Definition: Protocol.h:15