Representation of an unregistered protocols.
More...
#import <SCRuntimeUnregisteredProtocol.h>
Representation of an unregistered protocols.
- SDK
- macOS 10.6+, iOS 7.0+, GNUstep
- Since
- version 1.2.6
Provides access to unregistered protocols in the process of creation for their subsequent registration in the runtime environment:
- creating new protocols;
- adding a methods, properties and another protocols;
- registration in the runtime environment.
Class instances can thrown the following exceptions:
| - (void) addMethod: |
|
(SCRuntimeMethod *) |
method |
| required: |
|
(BOOL) |
required |
| instance: |
|
(BOOL) |
instance |
|
|
| |
Adds a given method into the receiving protocol.
- Parameters
-
| method | - a method |
| required | - YES for adding a required method, NO for adding an optional method |
| instance | - YES for adding an instance method, NO for adding a class method |
- Returns
- YES if a given method was successfully added to the receiving protocol, otherwise NO
- Exceptions
-
| - (void) addProperty: |
|
(SCRuntimeProperty *) |
property |
| required: |
|
(BOOL) |
required |
| instance: |
|
(BOOL) |
instance |
|
|
| |
- SDK
- macOS 10.6+, iOS 7.0+
Adds into the receiving protocol a given property.
- Parameters
-
| property | - a property |
| required | - YES for a required property, NO for an optional property |
| instance | - YES for an instance property, NO for a class property |
- Exceptions
-
- SDK
- macOS 10.6+, iOS 7.0+
Adds a given protocol into the receiving protocol.
- Warning
- On a GNUstep platform method was removed all previously added protocols.
- Parameters
-
- Exceptions
-
| - (void) addProtocolWithName: |
|
(NSString *) |
name |
|
- SDK
- macOS 10.6+, iOS 7.0+
Adds a protocol with a given name into the receiving protocol.
- Warning
- On a GNUstep platform method was removed all previously added protocols.
- Parameters
-
- Exceptions
-
| - (instancetype) initWithName: |
|
(NSString *) |
name |
|
Initializes an unregistered protocol using a given name.
- Parameters
-
| name | - a name of a new protocol |
- Returns
- A newly initialized protocol
- Exceptions
-
Reimplemented from SCRuntimeProtocol.
| + (instancetype) protocolWithName: |
|
(NSString *) |
name |
|
Returns an unregistered protocol created by using a given name.
- Parameters
-
| name | - a name of a new protocol |
- Returns
- A created protocol
- Exceptions
-
Reimplemented from SCRuntimeProtocol.
Registers the receiving protocol in the runtime environment.
- Returns
- A registered protocol
- Exceptions
-
The documentation for this class was generated from the following files: