objc

Instance Methods
Protocol Class Reference

Protocol class definition. More...

#import <objc/objc.h>

Inheritance diagram for Protocol:
Inheritance graph
[legend]
Collaboration diagram for Protocol:
Collaboration graph
[legend]

Instance Methods

(const char *) - name
 Returns the name of the protocol. More...
 
(BOOL- conformsTo:
 Checks if this protocol conforms to another protocol. More...
 
- Instance Methods inherited from Object
(void) - dealloc
 Free resources for an existing instance.
 
(id- init
 Initialize the instance, after allocation. More...
 
(Class- class
 Returns the class of the instance. More...
 
(Class- superclass
 Returns the superclass of the instance. More...
 
(BOOL- isEqual:
 Compares the receiver to another object for equality. More...
 
(BOOL- isKindOfClass:
 Returns a Boolean value that indicates whether the receiver is an instance of a given class. More...
 
(NXString *) - description
 Returns a string that represents the instance. More...
 
- Instance Methods inherited from <ObjectProtocol>
(BOOL- respondsToSelector:
 Checks if the receiver responds to a selector. More...
 

Additional Inherited Members

- Class Methods inherited from Object
(void) + initialize
 Performs one-time initialization for the class. More...
 
(id+ alloc
 Allocate a new class instance. More...
 
(Class+ class
 Returns the class object. More...
 
(Class+ superclass
 Returns the superclass of the class. More...
 
(NXString *) + description
 Returns a string that represents the class. More...
 
- Protected Attributes inherited from Object
Class isa
 A pointer to the object's class structure. More...
 

Detailed Description

Protocol class definition.

Definition at line 15 of file Protocol.h.

Method Documentation

◆ conformsTo:()

- (BOOL) conformsTo: (Protocol *)  aProtocolObject

Checks if this protocol conforms to another protocol.

Parameters
aProtocolObjectThe protocol to check conformance against.
Returns
YES if this protocol conforms to the specified protocol, NO otherwise.

This method determines whether this protocol adopts or inherits from the specified protocol. A protocol conforms to another protocol if it explicitly declares that it adopts the protocol, or if it inherits from a protocol that conforms to the specified protocol.

Implements Object.

◆ name()

- (const char *) name

Returns the name of the protocol.

Returns
A C string containing the protocol name.

Implements Object.


The documentation for this class was generated from the following file: